Browse Source

Fixes typo in broadcast routing example. Closes #1026

Ask Solem 12 years ago
parent
commit
0bfdec30f1
1 changed files with 1 additions and 2 deletions
  1. 1 2
      docs/userguide/routing.rst

+ 1 - 2
docs/userguide/routing.rst

@@ -572,8 +572,7 @@ copies of tasks to all workers connected to it:
 
 
     CELERY_QUEUES = (Broadcast('broadcast_tasks'), )
     CELERY_QUEUES = (Broadcast('broadcast_tasks'), )
 
 
-    CELERY_ROUTES = {'tasks.reload_cache': 'broadcast_tasks'}
-
+    CELERY_ROUTES = {'tasks.reload_cache': {'queue': 'broadcast_tasks'}}
 
 
 Now the ``tasks.reload_tasks`` task will be sent to every
 Now the ``tasks.reload_tasks`` task will be sent to every
 worker consuming from this queue.
 worker consuming from this queue.