소스 검색

Consumer did not pass consumer kwargs to namespace

Ask Solem 12 년 전
부모
커밋
7e5ef9e96c
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      celery/worker/consumer.py

+ 1 - 1
celery/worker/consumer.py

@@ -167,7 +167,7 @@ class Consumer(object):
         self.namespace = self.Namespace(
             app=self.app, on_close=self.on_close,
         )
-        self.namespace.apply(self, **worker_options or {})
+        self.namespace.apply(self, **dict(worker_options or {}, **kwargs))
 
     def start(self):
         ns, loop = self.namespace, self.loop