MCPcopy
hub / github.com/celery/celery / _close

Method _close

celery/bootsteps.py:407–415  ·  view source on GitHub ↗
(self, c, cancel_consumers=True)

Source from the content-addressed store, hash-verified

405 self._close(c, False)
406
407 def _close(self, c, cancel_consumers=True):
408 channels = set()
409 for consumer in self.consumers or []:
410 if cancel_consumers:
411 ignore_errors(c.connection, consumer.cancel)
412 if consumer.channel:
413 channels.add(consumer.channel)
414 for channel in channels:
415 ignore_errors(c.connection, channel.close)

Callers 3

stopMethod · 0.95
shutdownMethod · 0.95

Calls 1

addMethod · 0.45

Tested by 1