Skip to main content

prepare

Expand the :setting:task_routes setting.

def prepare(
routes: Union[Mapping, list, tuple, str, None]
) - > list

Expand the :setting:task_routes setting.

Parameters

NameTypeDescription
routesUnion[Mapping, list, tuple, str, None]The raw task routing configuration to be normalized and expanded into executable route objects.

Returns

TypeDescription
listA list of expanded route objects, where string paths are lazily loaded and dictionary/sequence definitions are wrapped in MapRoute instances.