python rabbitMQ flush_output错误 财富值66

2016-10-17 12:21发布

程序:

while(1):     # query tasks from local file     if task:         publish(video_id)     else:         sleep(1)

长时间运行后,会报出以下错误,这是啥意思?

Traceback (most recent call last):   File "publisher_dev.py", line 209, in <module>     publish(video_id)   File "publisher_dev.py", line 157, in publish     delivery_mode=2,  # make message persistent   File "/home/weike/.local/lib/python2.7/site-packages/pika/adapters/blocking_connection.py", line 1978, in basic_publish     mandatory, immediate)   File "/home/weike/.local/lib/python2.7/site-packages/pika/adapters/blocking_connection.py", line 2065, in publish     self._flush_output()   File "/home/weike/.local/lib/python2.7/site-packages/pika/adapters/blocking_connection.py", line 1174, in _flush_output     *waiters)   File "/home/weike/.local/lib/python2.7/site-packages/pika/adapters/blocking_connection.py", line 395, in _flush_output     raise exceptions.ConnectionClosed() pika.exceptions.ConnectionClosed
友情提示: 问题已经关闭,关闭后问题禁止继续编辑,回答。
该问题目前已经被作者或者管理员关闭, 无法添加新回复
0条回答

一周热门 更多>