Explorar el Código

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

Ask Solem hace 15 años
padre
commit
f81e26aa85
Se han modificado 1 ficheros con 1 adiciones y 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: