瀏覽代碼

Fixes typo in broadcast routing example. Closes #1026

Ask Solem 12 年之前
父節點
當前提交
0bfdec30f1
共有 1 個文件被更改,包括 1 次插入2 次删除
  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_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
 worker consuming from this queue.