你正在阅读 Celery 3.1 的文档。开发版本文档见:
此处.
celery.app.routes
Contains utilities for working with task routers,
(CELERY_ROUTES).
-
class celery.app.routes.MapRoute(map)[源代码]
Creates a router out of a dict.
-
route_for_task(task, *args, **kwargs)[源代码]
-
class celery.app.routes.Router(routes=None, queues=None, create_missing=False, app=None)[源代码]
-
expand_destination(route)[源代码]
-
lookup_route(task, args=None, kwargs=None)[源代码]
-
route(options, task, args=(), kwargs={})[源代码]
-
celery.app.routes.prepare(routes)[源代码]
Expands the CELERY_ROUTES setting.