Procházet zdrojové kódy

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

Ask Solem před 16 roky
rodič
revize
06b9165a29
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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):