Explorar o código

Use BrokerConnection.connect() instead of .connection property.

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

+ 1 - 1
celery/worker/listener.py

@@ -217,7 +217,7 @@ class CarrotListener(object):
         def _establish_connection():
             """Establish a connection to the AMQP broker."""
             conn = establish_connection()
-            conn.connection # Connection is established lazily, so connect.
+            conn.connect() # Connection is established lazily, so connect.
             return conn
 
         if not conf.BROKER_CONNECTION_RETRY: