Skip to main content

MapRoute

Creates a router out of a :class:dict.

Attributes

AttributeTypeDescription
mapdictA dictionary mapping exact string keys to their corresponding route configurations.
patterns[OrderedDict](../../utils/collections/ordereddict.md?sid=celery_utils_collections_ordereddict)An ordered collection of compiled regular expressions or pattern objects used to match route names that do not have an exact match in the map.

Constructor

Signature

def MapRoute(
map: Union[Mapping, Iterable]
) - > null

Parameters

NameTypeDescription
mapUnion[Mapping, Iterable]A mapping object or an iterable of key-value pairs representing route definitions.

Signature

def MapRoute(
map: Union[Mapping, Iterable]
) - > null

Parameters

NameTypeDescription
mapUnion[Mapping, Iterable]A dictionary or iterable of pairs mapping task names or glob patterns to their respective routing configurations.