MCPcopy
hub / github.com/celery/celery / _do_reset

Method _do_reset

celery/worker/pidbox.py:99–103  ·  view source on GitHub ↗
(self, c, connection)

Source from the content-addressed store, hash-verified

97 self._resets += 1
98
99 def _do_reset(self, c, connection):
100 self._close_channel(c)
101 self.node.channel = connection.channel()
102 self.consumer = self.node.listen(callback=self.on_message)
103 self.consumer.consume()
104
105 def loop(self, c):
106 resets = [self._resets]

Callers 1

loopMethod · 0.95

Calls 3

_close_channelMethod · 0.80
channelMethod · 0.80
consumeMethod · 0.80

Tested by

no test coverage detected