MCPcopy
hub / github.com/celery/celery / __init__

Method __init__

celery/worker/pidbox.py:25–37  ·  view source on GitHub ↗
(self, c)

Source from the content-addressed store, hash-verified

23 consumer = None
24
25 def __init__(self, c):
26 self.c = c
27 self.hostname = c.hostname
28 self.node = c.app.control.mailbox.Node(
29 safe_str(c.hostname),
30 handlers=control.Panel.data,
31 state=AttributeDict(
32 app=c.app,
33 hostname=c.hostname,
34 consumer=c,
35 tset=pass1 if c.controller.use_eventloop else set),
36 )
37 self._forward_clock = self.c.app.clock.forward
38
39 def on_message(self, body, message):
40 # just increase clock as clients usually don't

Callers

nothing calls this directly

Calls 1

AttributeDictClass · 0.90

Tested by

no test coverage detected