Browse Source

Fixed a trivial bug that prevented backends.base.get_many from hitting timeout.

Remigiusz Modrzejewski 12 năm trước cách đây
mục cha
commit
783c280d82
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      celery/backends/base.py

+ 1 - 1
celery/backends/base.py

@@ -416,7 +416,7 @@ class KeyValueStoreBackend(BaseDictBackend):
             if timeout and iterations * interval >= timeout:
                 raise TimeoutError('Operation timed out (%s)' % (timeout, ))
             time.sleep(interval)  # don't busy loop.
-            iterations += 0
+            iterations += 1
 
     def _forget(self, task_id):
         self.delete(self.get_key_for_task(task_id))