Explorar o código

AMQP result backend: Fixed typo channel.release -> channel.close

Ask Solem %!s(int64=14) %!d(string=hai) anos
pai
achega
eb81270dbe
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      celery/backends/amqp.py

+ 1 - 1
celery/backends/amqp.py

@@ -200,7 +200,7 @@ class AMQPBackend(BaseDictBackend):
             finally:
                 consumer.cancel()
         finally:
-            channel.release()
+            channel.close()
             conn.release()
 
     def get_many(self, task_ids, timeout=None):