Skip to content

Commit c81c9f2

Browse files
author
Ketan Bhatt
authored
Fixes celery#3620
1 parent f40ce39 commit c81c9f2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

celery/worker/loops.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,10 @@ def asynloop(obj, connection, consumer, blueprint, hub, qos,
4444
_enable_amqheartbeats(hub.timer, connection, rate=hbrate)
4545

4646
consumer.on_message = on_task_received
47-
consumer.consume()
48-
obj.on_ready()
4947
obj.controller.register_with_event_loop(hub)
5048
obj.register_with_event_loop(hub)
49+
consumer.consume()
50+
obj.on_ready()
5151

5252
# did_start_ok will verify that pool processes were able to start,
5353
# but this will only work the first time we start, as

0 commit comments

Comments
 (0)