Browse Source

Mediator: Don't sleep between blocking queue.get()'s

Ask Solem 14 years ago
parent
commit
89502dbd05
1 changed files with 1 additions and 1 deletions
  1. 1 1
      celery/worker/controllers.py

+ 1 - 1
celery/worker/controllers.py

@@ -89,7 +89,7 @@ class Mediator(BackgroundThread):
             # This blocks until there's a message in the queue.
             task = self.ready_queue.get(timeout=1)
         except QueueEmpty:
-            time.sleep(0.2)
+            pass
         else:
             if task.revoked():
                 return