Sfoglia il codice sorgente

Consumer did not pass consumer kwargs to namespace

Ask Solem 12 anni fa
parent
commit
7e5ef9e96c
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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