Explorar o código

Remove channel from delivery_info

Ask Solem %!s(int64=13) %!d(string=hai) anos
pai
achega
232bf5b7b7
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      celery/worker/job.py

+ 3 - 0
celery/worker/job.py

@@ -127,6 +127,9 @@ class Request(object):
             self.expires = None
 
         self.delivery_info = delivery_info or {}
+        # amqplib transport adds the channel here for some reason, so need
+        # to remove it.
+        self.delivery_info.pop('channel', None)
         self.request_dict = body
 
     @classmethod