Jelajahi Sumber

Fixes typo in broadcast routing example. Closes #1026

Ask Solem 12 tahun lalu
induk
melakukan
0bfdec30f1
1 mengubah file dengan 1 tambahan dan 2 penghapusan
  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.