Skip to content

Commit 7965ad9

Browse files
author
Ask Solem
committed
Recent change made celeryd use 100% CPU
Need to find a better way to do this, maybe using threading.Event
1 parent 1476f3f commit 7965ad9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

celery/worker/controllers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def on_iteration(self):
8989
# This blocks until there's a message in the queue.
9090
task = self.ready_queue.get(timeout=1)
9191
except QueueEmpty:
92-
pass
92+
time.sleep(0.2)
9393
else:
9494
if task.revoked():
9595
return

0 commit comments

Comments
 (0)