Explorar o código

AMQP Result Backend: Queue must be declared before polling result. Thanks to bmbouter

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

+ 1 - 0
celery/backends/amqp.py

@@ -148,6 +148,7 @@ class AMQPBackend(BaseDictBackend):
         channel = conn.channel()
         try:
             binding = self._create_binding(task_id)(channel)
+            binding.declare()
             result = binding.get()
             if result:
                 try: