app.celery.MyCelery.default_producer

MyCelery.default_producer(producer=None)

Context used to acquire a producer from the pool.

For use within a with statement to get a producer from the pool if one is not already provided

Parameters

producer (kombu.Producer) – If not provided, a producer will be acquired from the producer pool.