Skip to main content

migrate_tasks

Migrate tasks from one broker to another.

def migrate_tasks(
source: Any,
dest: Any,
migrate: Callable = migrate_task,
app: Celery = None,
queues: List[str]|Dict = None,
**kwargs: Any
) - > Any

Migrate tasks from one broker to another.

Parameters

NameTypeDescription
sourceAnyThe source broker connection or URL from which tasks will be consumed.
destAnyThe destination broker connection or URL where tasks will be republished.
migrateCallable = migrate_taskThe function responsible for performing the individual task migration logic.
appCelery = NoneThe Celery application instance to use; defaults to the current app if not provided.
queues`List[str]Dict` = None
**kwargsAnyAdditional configuration arguments passed to the underlying start_filter function.

Returns

TypeDescription
AnyThe result of the start_filter operation, typically initiating the task transfer process.