File "pubsub.py", line 314, in _publish
producer.publish(message, exchange=exchange, routing_key=topic)
File "/opt/ENV/local/lib/python2.7/site-packages/kombu/messaging.py", line 172, in publish routing_key,
mandatory, immediate, exchange, declare)
File "/opt/ENV/local/lib/python2.7/site-packages/kombu/messaging.py", line 188, in _publish
mandatory=mandatory, immediate=immediate,
File "/opt/local/lib/python2.7/site-packages/librabbitmq/__init__.py", line 117, in basic_publish
mandatory or False, immediate or False,
ConnectionError: Couldn't revive channel
奇怪的是,我收到此错误的此消息之前的消息未到达消费者端。我在Connection对象上使用transport_options = {' confirm_publish':True},它传递给生产者池。
Rabbitmq服务器支持AWS上的ELB。
关于上述错误以及为什么邮件可能会丢失的任何想法?
感谢。