Browse Source

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 11 years ago
parent
commit
46e60700d4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      celery/result.py

+ 1 - 1
celery/result.py

@@ -512,7 +512,7 @@ class ResultSet(ResultBase):
                                       interval=interval))
                                       interval=interval))
         return results
         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`.
         """Backend optimized version of :meth:`iterate`.
 
 
         .. versionadded:: 2.2
         .. versionadded:: 2.2