浏览代码

Be compatible with carrot 0.5.0 by also defining the exchange_type on the
Publisher.

Ask Solem 16 年之前
父节点
当前提交
fae8cf1fec
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      celery/messaging.py

+ 1 - 0
celery/messaging.py

@@ -16,6 +16,7 @@ except ImportError:
 class TaskPublisher(Publisher):
     """The AMQP Task Publisher class."""
     exchange = conf.AMQP_EXCHANGE
+    exchange_type = conf.AMQP_EXCHANGE_TYPE
     routing_key = conf.AMQP_PUBLISHER_ROUTING_KEY
     encoder = pickle.dumps