Explorar o código

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

Ask Solem %!s(int64=16) %!d(string=hai) anos
pai
achega
fae8cf1fec
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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