Skip to main content

migrate_task

Migrate single task message.

def migrate_task(
producer: kombu.Producer,
body_: any,
message: kombu.Message,
queues: dict = None
) - > null

Migrate single task message.

Parameters

NameTypeDescription
producerkombu.ProducerThe producer instance used to republish the task message to the new destination.
body_anyThe decoded body of the message being migrated.
messagekombu.MessageThe original message object containing delivery information such as exchange and routing key.
queuesdict = NoneA mapping of old exchange or routing key names to their new destination names.

Returns

TypeDescription
nullNothing is returned; the message is republished to the target exchange and routing key.