Yohohohohohooho | Sanrei Aya
Sanrei Aya


Server : LiteSpeed
System : Linux barito.iixcp.rumahweb.net 5.14.0-611.49.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Apr 21 16:39:08 EDT 2026 x86_64
User : elvh3918 ( 1528)
PHP Version : 8.2.31
Disable Function : mail
Directory :  /usr/local/lib/python3.9/site-packages/celery/app/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/local/lib/python3.9/site-packages/celery/app/__pycache__/__init__.cpython-39.pyc
a

��Sh~	�@svdZddlmZddlmZmZmZmZmZddl	m
Z
ddlmZddl
mZdZe
d	d
��Zddd
�Zdd�ZdS)zCelery Application.�)�_state)�app_or_default�
disable_trace�enable_trace�pop_current_task�push_current_task)�Proxy�)�Celery)�
AppPickler)
r
rr�default_app�	bugreportrr�shared_taskrrcCstjS�N)rr�rr�=/usr/local/lib/python3.9/site-packages/celery/app/__init__.py�<lambda>�rNcCs|p
t����S)z)Return information useful in bug reports.)r�get_current_appr
��apprrrr
sr
cOsDdd�}t|�dkr6t|d�r6|fi|��|d�S||i|��S)aLCreate shared task (decorator).

    This can be used by library authors to create tasks that'll work
    for any app environment.

    Returns:
        ~celery.local.Proxy: A proxy that always takes the task from the
        current apps task registry.

    Example:

        >>> from celery import Celery, shared_task
        >>> @shared_task
        ... def add(x, y):
        ...     return x + y
        ...
        >>> app1 = Celery(broker='amqp://')
        >>> add.app is app1
        True
        >>> app2 = Celery(broker='redis://')
        >>> add.app is app2
        True
    cs�fdd�}|S)Nc	s���d��t���fdd��t��D]B}|jr&|j�"|j�fi���Wd�q&1s^0Yq&��fdd�}t|�S)N�namecs|j�fi���Sr)�_task_from_funr)�fun�optionsrrr7rzJshared_task.<locals>.create_shared_task.<locals>.__inner.<locals>.<lambda>cs"t��}|j�p|��j�j�Sr)rr�tasksZ
gen_task_name�__name__�
__module__r�rrrr�task_by_consBs�zNshared_task.<locals>.create_shared_task.<locals>.__inner.<locals>.task_by_cons)�getrZconnect_on_app_finalizeZ_get_active_apps�	finalizedZ_finalize_mutexrr)rrr�rrr�__inner2s
�2z8shared_task.<locals>.create_shared_task.<locals>.__innerr)rr#rr"r�create_shared_task0sz'shared_task.<locals>.create_shared_taskr	r)�len�callable)�args�kwargsr$rrrrsr)N)�__doc__ZceleryrZ
celery._staterrrrrZcelery.localr�baser
�utilsr�__all__rr
rrrrr�<module>s


Yohohohohohooho | Sanrei Aya