File: //usr/local/lib/python3.9/site-packages/celery/bin/__pycache__/migrate.cpython-39.pyc
a
X>h< � @ s� d Z ddlZddlmZ ddlmZmZmZ ddlm Z ej
ed�e�d�e�d�ejd d
ee
ddd
�ejddeeddd
�ejddedddd�ejddeddd�ejddeddd�ejddedddd�ejed d!� �����������ZdS )"zAThe ``celery migrate`` command, used to filter and move messages.� N)�
Connection)�
CeleryCommand�CeleryOption�handle_preload_options)�
migrate_tasks)�cls�source�destinationz-nz--limitzMigration OptionszNumber of tasks to consume.)r �type�
help_group�helpz-tz --timeoutz%Timeout in seconds waiting for tasks.z-az--ack-messagesTz Ack messages from source broker.)r Zis_flagr r z-Tz--tasksz List of task names to filter on.)r r r z-Qz--queueszList of queues to migrate.z-Fz --foreverz'Continually migrate tasks until killed.c s. � fdd�}t t|�t|�fd|i|�� dS )z�Migrate tasks from one broker to another.
Warning:
This command is experimental, make sure you have a backup of
the tasks before you continue.
c s&