Jelajahi Sumber

Routing Userguide: Fixed typo "feed": -> {"queue": "feeds"}. Closes #169. Thanks to jcassee.

Ask Solem 14 tahun lalu
induk
melakukan
6c68fc4024
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      docs/userguide/routing.rst

+ 1 - 1
docs/userguide/routing.rst

@@ -28,7 +28,7 @@ Say you have two servers, ``x``, and ``y`` that handles regular tasks,
 and one server ``z``, that only handles feed related tasks. You can use this
 configuration::
 
-    CELERY_ROUTES = {"feed.tasks.import_feed": "feeds"}
+    CELERY_ROUTES = {"feed.tasks.import_feed": {"queue": "feeds"}}
 
 With this route enabled import feed tasks will be routed to the
 ``"feeds"`` queue, while all other tasks will be routed to the default queue