Skip to main content

add_map_task

Registers and returns a non-shared Celery task named 'celery.map' that applies a provided task signature to each item in an iterable.

def add_map_task(
app: Celery
) - > function

Registers a custom 'celery.map' task to the provided Celery application instance, enabling the execution of a task over a sequence of items.

Parameters

NameTypeDescription
appCeleryThe Celery application instance where the mapping task will be registered.

Returns

TypeDescription
functionThe newly registered 'celery.map' task function.