MCPcopy
hub / github.com/celery/celery / on_after_fork

Method on_after_fork

celery/backends/rpc.py:128–132  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

126 self._connection.close()
127
128 def on_after_fork(self):
129 self._consumer = None
130 if self._connection is not None:
131 self._connection.collect()
132 self._connection = None
133
134 def consume_from(self, task_id):
135 if self._consumer is None:

Callers 2

test_on_after_forkMethod · 0.45

Calls 1

collectMethod · 0.80

Tested by 2

test_on_after_forkMethod · 0.36