def producer_pool(self):
if self._producer_pool is None:
self._producer_pool = kombu.pools.producers[
self.app.connection_for_write()]
self._producer_pool.limit = self.app.pool.limit
# TODO: submit this patch to celery:
self._producer_pool.Producer = self.Producer
return self._producer_pool
# tasks ---
# FIXME: look into global tasks, which get added to all apps automatically
评论列表
文章目录