소스 검색

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

Ask Solem 16 년 전
부모
커밋
06b9165a29
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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):