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/app/__pycache__/annotations.cpython-39.pyc
a

X>h��@sXdZddlmZmZddlmZed�Zed�ZdZGdd�de	�Z
d	d
�Zdd�Zd
S)z�Task Annotations.

Annotations is a nice term for monkey-patching task classes
in the configuration.

This prepares and performs the annotations in the
:setting:`task_annotations` setting.
�)�firstmethod�mlazy)�instantiate�annotate�annotate_any)�
MapAnnotation�prepare�resolve_allc@s eZdZdZdd�Zdd�ZdS)rz(Annotation map: task_name => attributes.cCs&zt|d�WSty Yn0dS)N�*)�dict�KeyError)�self�r�@/usr/local/lib/python3.9/site-packages/celery/app/annotations.pyrszMapAnnotation.annotate_anycCs(zt||j�WSty"Yn0dS�N)r�namer)r
�taskrrrrszMapAnnotation.annotateN)�__name__�
__module__�__qualname__�__doc__rrrrrrrsrcs:dd��|durdSt|ttf�s(|f}�fdd�|D�S)z/Expand the :setting:`task_annotations` setting.cSs*t|t�rt|�St|t�r&tt|�S|Sr)�
isinstancerr�strrr)�
annotationrrr�expand_annotation$s



z"prepare.<locals>.expand_annotationNrcsg|]}�|��qSrr)�.0�anno�rrr�
<listcomp>/�zprepare.<locals>.<listcomp>)r�list�tuple)�annotationsrrrr"srcCsdd�t||�t|�fD�S)z Resolve all pending annotations.css|]}|r|VqdSrr)r�xrrr�	<genexpr>4rzresolve_all.<locals>.<genexpr>)�_first_match�_first_match_any)rrrrrr	2sr	N)
rZcelery.utils.functionalrrZcelery.utils.importsrr%r&�__all__rrrr	rrrr�<module>s