o
    ›¨ÊhB	  ã                   @   s  d Z ddlZddlmZmZmZmZmZmZm	Z	 ej
ed�e d¡ejddeedd	d
d�ejddeedd	dd�ejdeed	dd�ejdeed	dd�ejdeed	dd�ejdedd	dd�ejdeddd�ejdedd d�ejd!edd"d�eje	d#d$„ ƒƒƒƒƒƒƒƒƒƒƒƒƒZdS )%zEThe ``celery call`` program used to send tasks from the command-line.é    N)ÚISO8601ÚISO8601_OR_FLOATÚ
JSON_ARRAYÚJSON_OBJECTÚCeleryCommandÚCeleryOptionÚhandle_preload_options)ÚclsÚnamez-az--argsz[]zCalling OptionszPositional arguments.)r	   ÚtypeÚdefaultÚ
help_groupÚhelpz-kz--kwargsz{}zKeyword arguments.z--etazscheduled time.)r	   r   r   r   z--countdownzeta in seconds from now.z	--expireszexpiry time.z--serializerÚjsonztask serializer.)r	   r   r   r   z--queuezRouting Optionszcustom queue name.)r	   r   r   z
--exchangezcustom exchange name.z--routing-keyzcustom routing key.c                 C   s4   | j jj|||||||	|
||d�
j}| j  |¡ dS )zCall a task by name.)	ÚargsÚkwargsÚ	countdownÚ
serializerÚqueueÚexchangeÚrouting_keyÚetaÚexpiresN)ÚobjÚappÚ	send_taskÚidÚecho)Úctxr
   r   r   r   r   r   r   r   r   r   Útask_id© r    úA/var/www/html/env/lib/python3.10/site-packages/celery/bin/call.pyÚcall   s   4÷
ör"   )Ú__doc__ÚclickÚcelery.bin.baser   r   r   r   r   r   r   ÚcommandÚargumentÚoptionÚfloatÚpass_contextr"   r    r    r    r!   Ú<module>   s~    $
úúüüüüýýý&