MCPcopy
hub / github.com/celery/celery / _consume_from

Method _consume_from

celery/backends/redis.py:160–165  ·  view source on GitHub ↗
(self, task_id)

Source from the content-addressed store, hash-verified

158 self._consume_from(task_id)
159
160 def _consume_from(self, task_id):
161 key = self._get_key_for_task(task_id)
162 if key not in self.subscribed_to:
163 self.subscribed_to.add(key)
164 with self.reconnect_on_error():
165 self._pubsub.subscribe(key)
166
167 def cancel_for(self, task_id):
168 key = self._get_key_for_task(task_id)

Callers 2

startMethod · 0.95
consume_fromMethod · 0.95

Calls 3

reconnect_on_errorMethod · 0.80
subscribeMethod · 0.80
addMethod · 0.45

Tested by

no test coverage detected