celery.app.routes

celery.routes

Contains utilities for working with task routers, (CELERY_ROUTES).

class celery.app.routes.MapRoute(map)[源代码]

Creates a router out of a dict.

class celery.app.routes.Router(routes=None, queues=None, create_missing=False, app=None)[源代码]

celery.app.routes.prepare(routes)[源代码]

Expands the CELERY_ROUTES setting.