Explorar o código

Use kombu.Connection.supports_exchange_type (requires kombu master)

Ask Solem %!s(int64=9) %!d(string=hai) anos
pai
achega
35b99e4ad1
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      celery/worker/consumer.py

+ 1 - 1
celery/worker/consumer.py

@@ -686,7 +686,7 @@ class Control(bootsteps.StartStopStep):
 
     def include_if(self, c):
         return (c.app.conf.CELERY_ENABLE_REMOTE_CONTROL and
-                'fanout' in c.conninfo.transport.implements.exchange_type)
+                c.conninfo.supports_exchange_type('fanout'))
 
 
 class Gossip(bootsteps.ConsumerStep):