Explorar o código

TimeoutHandler now sleeps for one second instead of a half

Ask Solem %!s(int64=13) %!d(string=hai) anos
pai
achega
7e88a44e11
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      celery/concurrency/processes/pool.py

+ 1 - 1
celery/concurrency/processes/pool.py

@@ -401,7 +401,7 @@ class TimeoutHandler(PoolThread):
                 elif i not in dirty and _timed_out(ack_time, soft_timeout):
                     _on_soft_timeout(job, i, soft_timeout)
 
-            time.sleep(0.5)                     # Don't waste CPU cycles.
+            time.sleep(1.0)                     # Don't waste CPU cycles.
 
         debug('timeout handler exiting')