Преглед на файлове

Remove channel from delivery_info

Ask Solem преди 13 години
родител
ревизия
232bf5b7b7
променени са 1 файла, в които са добавени 3 реда и са изтрити 0 реда
  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