job_queue.py 文件源码

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

项目:dazzar 作者: Philaeux 项目源码 文件源码
def _connect(self):
        """Initial connection to the queue manager."""
        self.connection = pika.BlockingConnection(pika.ConnectionParameters(host='dazzar_rabbitmq',
                                                                            credentials=pika.PlainCredentials(
                                                                                self.username,
                                                                                self.password)))
        self.channel = self.connection.channel()
        self.channel.basic_qos(prefetch_count=1)
        self.channel.queue_declare(queue='dazzar_jobs', durable=True)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号