celery_deadline.py 文件源码

python
阅读 24 收藏 0 点赞 0 评论 0

项目:celery-deadline 作者: chadrik 项目源码 文件源码
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
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号