Browse Source

Remove channel from delivery_info

Ask Solem 12 years ago
parent
commit
232bf5b7b7
1 changed files with 3 additions and 0 deletions
  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