Explorar o código

backend.wait_for() sleeps for 0.5s again, temporarily had it at 0.05 and
managed to commit the value.

Ask Solem %!s(int64=16) %!d(string=hai) anos
pai
achega
06b9165a29
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      celery/backends/base.py

+ 1 - 1
celery/backends/base.py

@@ -175,7 +175,7 @@ class BaseBackend(object):
                 return self.get_result(task_id)
             elif status == "FAILURE":
                 raise self.get_result(task_id)
-            time.sleep(0.05) # avoid hammering the CPU checking status.
+            time.sleep(0.5) # avoid hammering the CPU checking status.
             timeout_timer.tick()
 
     def process_cleanup(self):