app.celery.MyCelery.producer_or_acquire
- MyCelery.producer_or_acquire(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.