MCPcopy
hub / github.com/celery/celery / _producer

Method _producer

examples/eventlet/bulk_task_producer.py:54–63  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

52 ]
53
54 def _producer(self):
55 inqueue = self.inqueue
56
57 with self.app.producer_or_acquire() as producer:
58 while 1:
59 task, args, kwargs, options, receipt = inqueue.get()
60 result = task.apply_async(args, kwargs,
61 producer=producer,
62 **options)
63 receipt.finished(result)

Callers

nothing calls this directly

Calls 4

producer_or_acquireMethod · 0.80
finishedMethod · 0.80
getMethod · 0.45
apply_asyncMethod · 0.45

Tested by

no test coverage detected