Pārlūkot izejas kodu

Use kombu.Connection.supports_exchange_type (requires kombu master)

Ask Solem 9 gadi atpakaļ
vecāks
revīzija
35b99e4ad1
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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):