Prechádzať zdrojové kódy

Consumer: Task bootstep must require Events

Ask Solem 11 rokov pred
rodič
commit
0fa0279e0d
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      celery/worker/consumer.py

+ 1 - 1
celery/worker/consumer.py

@@ -490,7 +490,7 @@ class Control(bootsteps.StartStopStep):
 
 
 class Tasks(bootsteps.StartStopStep):
-    requires = ()
+    requires = (Events, )
 
     def __init__(self, c, initial_prefetch_count=2, **kwargs):
         c.task_consumer = c.qos = None