Procházet zdrojové kódy

result: make base backend and iter_native interval default value agree

The base backend has a default of 0.5, when we passed None in
that caused it to ignore the default (since we passed a value)
and raised an error when calling time.sleep.
Idan Kamara před 11 roky
rodič
revize
46e60700d4
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      celery/result.py

+ 1 - 1
celery/result.py

@@ -512,7 +512,7 @@ class ResultSet(ResultBase):
                                       interval=interval))
         return results
 
-    def iter_native(self, timeout=None, interval=None):
+    def iter_native(self, timeout=None, interval=0.5):
         """Backend optimized version of :meth:`iterate`.
 
         .. versionadded:: 2.2