Browse Source

Recent change made celeryd use 100% CPU

Need to find a better way to do this, maybe using threading.Event
Ask Solem 14 years ago
parent
commit
7965ad9d66
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:
-            pass
+            time.sleep(0.2)
         else:
             if task.revoked():
                 return