Pārlūkot izejas kodu

Fixes typo in broadcast routing example. Closes #1026

Ask Solem 12 gadi atpakaļ
vecāks
revīzija
0bfdec30f1
1 mainītis faili ar 1 papildinājumiem un 2 dzēšanām
  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.