MCPcopy
hub / github.com/celery/celery / enable

Method enable

celery/events/dispatcher.py:100–107  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

98 self.close()
99
100 def enable(self):
101 self.producer = Producer(self.channel or self.connection,
102 exchange=self.exchange,
103 serializer=self.serializer,
104 auto_declare=False)
105 self.enabled = True
106 for callback in self.on_enabled:
107 callback()
108
109 def disable(self):
110 if self.enabled:

Callers 3

__init__Method · 0.95
test_enabled_disableMethod · 0.80

Calls 1

callbackFunction · 0.85

Tested by 2

test_enabled_disableMethod · 0.64