Преглед на файлове

TimeoutHandler now sleeps for one second instead of a half

Ask Solem преди 13 години
родител
ревизия
7e88a44e11
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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')