|
@@ -201,7 +201,7 @@ class Consumer(object):
|
|
# so if the connection timeout is exceeded once, it can NEVER
|
|
# so if the connection timeout is exceeded once, it can NEVER
|
|
# connect again.
|
|
# connect again.
|
|
self.app.conf.BROKER_CONNECTION_TIMEOUT = None
|
|
self.app.conf.BROKER_CONNECTION_TIMEOUT = None
|
|
-
|
|
|
|
|
|
+
|
|
self.steps = []
|
|
self.steps = []
|
|
self.blueprint = self.Blueprint(
|
|
self.blueprint = self.Blueprint(
|
|
app=self.app, on_close=self.on_close,
|
|
app=self.app, on_close=self.on_close,
|
|
@@ -484,10 +484,13 @@ class Control(bootsteps.StartStopStep):
|
|
self.start = self.box.start
|
|
self.start = self.box.start
|
|
self.stop = self.box.stop
|
|
self.stop = self.box.stop
|
|
self.shutdown = self.box.shutdown
|
|
self.shutdown = self.box.shutdown
|
|
|
|
+
|
|
|
|
+ def include_if(self, c):
|
|
|
|
+ return c.app.conf.CELERY_ENABLE_REMOTE_CONTROL
|
|
|
|
|
|
|
|
|
|
class Tasks(bootsteps.StartStopStep):
|
|
class Tasks(bootsteps.StartStopStep):
|
|
- requires = (Control, )
|
|
|
|
|
|
+ requires = ()
|
|
|
|
|
|
def __init__(self, c, initial_prefetch_count=2, **kwargs):
|
|
def __init__(self, c, initial_prefetch_count=2, **kwargs):
|
|
c.task_consumer = c.qos = None
|
|
c.task_consumer = c.qos = None
|