HEX
Server: LiteSpeed
System: Linux kapuas.iixcp.rumahweb.net 5.14.0-427.42.1.el9_4.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Nov 1 14:58:02 EDT 2024 x86_64
User: mirz4654 (1666)
PHP: 8.1.33
Disabled: system,exec,escapeshellarg,escapeshellcmd,passthru,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate,shell_exec,popen,pclose,dl,pfsockopen,leak,apache_child_terminate,posix_kill,posix_mkfifo,posix_setsid,posix_setuid,posix_setpgid,ini_alter,show_source,define_syslog_variables,symlink,syslog,openlog,openlog,closelog,ocinumcols,listen,chgrp,apache_note,apache_setenv,debugger_on,debugger_off,ftp_exec,dll,ftp,myshellexec,socket_bind,mail,posix_getwpuid
Upload Files
File: //usr/local/lib/python3.9/site-packages/celery/bin/__pycache__/migrate.cpython-39.pyc
a

X>h<�@s�dZddlZddlmZddlmZmZmZddlm	Z	ej
ed�e�d�e�d�ejd	d
ee
ddd
�ejddeeddd
�ejddedddd�ejddeddd�ejddeddd�ejddedddd�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.)rZis_flagrrz-Tz--tasksz List of task names to filter on.)rrrz-Qz--queueszList of queues to migrate.z-Fz	--foreverz'Continually migrate tasks until killed.cs.�fdd�}tt|�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.
    cs&�j�d|j�d|j�d|���dS)NzMigrating task �/z: )�objZecho�countZstrtotal)�state�body�message��ctx��</usr/local/lib/python3.9/site-packages/celery/bin/migrate.py�on_migrate_task9sz migrate.<locals>.on_migrate_task�callbackN)rr)rrr	�kwargsrrrr�migrate	s0���r)�__doc__ZclickZkomburZcelery.bin.baserrrZcelery.contrib.migrater�command�argument�option�int�floatZpass_contextrrrrr�<module>sd
������