Browse Source

celery.execute: Forgot to pass CREATE_MISSING_QUEUES to Router.

Ask Solem 15 years ago
parent
commit
02bd2f2efb
1 changed files with 2 additions and 1 deletions
  1. 2 1
      celery/execute/__init__.py

+ 2 - 1
celery/execute/__init__.py

@@ -79,7 +79,8 @@ def apply_async(task, args=None, kwargs=None, countdown=None, eta=None,
     replaced by a local :func:`apply` call instead.
 
     """
-    router = router or Router(conf.ROUTES, conf.get_queues())
+    router = router or Router(conf.ROUTES, conf.get_queues(),
+                              conf.CREATE_MISSING_QUEUES)
 
     if conf.ALWAYS_EAGER:
         return apply(task, args, kwargs, task_id=task_id)