MCPcopy
hub / github.com/celery/celery / stop

Method stop

celery/worker/consumer/tasks.py:80–84  ·  view source on GitHub ↗

Stop task consumer.

(self, c)

Source from the content-addressed store, hash-verified

78 channel_qos.can_consume = MethodType(can_consume, channel_qos)
79
80 def stop(self, c):
81 """Stop task consumer."""
82 if c.task_consumer:
83 debug('Canceling task consumer...')
84 ignore_errors(c, c.task_consumer.cancel)
85
86 def shutdown(self, c):
87 """Shutdown task consumer."""

Callers 3

test_stopMethod · 0.95
shutdownMethod · 0.95

Calls 1

debugFunction · 0.85

Tested by 2

test_stopMethod · 0.76