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/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

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

��Sh��@shdZddlZddlZddlZddlZddlmZddlmZdZ	da
dae��Z
e�Zdadd�Zd	d
�Zdd�Zd
d�ZGdd�dej�Ze�Ze�ZejZejZdd�Zdd�Zdd�Zej �!d�r�dd�Z"nej �!d�r�dd�Z"neZ"dd�Z#dd�Z$ee"�Z%ee#�Z&d d!�Z'd"d#�Z(d$d%�Z)d/d&d'�Z*d0d(d)�Z+d*d+�Z,d,d-�Z-ej �!d.��r^e,�ne-�dS)1z�Internal state.

This is an internal module containing thread state
like the ``current_app``, and ``current_task``.

This module shouldn't be used directly.
�N)�Proxy)�
LocalStack)�set_default_app�get_current_app�get_current_task�get_current_worker_task�current_app�current_task�connect_on_app_finalizeFcCst�|�|S)z8Connect callback to be called when any app is finalized.)�_on_app_finalizers�add)�callback�r�7/usr/local/lib/python3.9/site-packages/celery/_state.pyr
+s
r
cCstt�}|D]}||�qdS�N)�setr)�app�	callbacksr
rrr�_announce_app_finalized1srcCs|adSr��_task_join_will_block)�blocksrrr�_set_task_join_will_block7srcCstSrrrrrr�task_join_will_block<src@seZdZdZdS)�_TLSN)�__name__�
__module__�__qualname__rrrrrr@srcCs|adS)zSet default app.N)�default_app�rrrrrVsrcCs>tdur4ddlm}t|dgdtj�d�p,dd��tjp<tS)Nr��Celery�defaultFZ
CELERY_LOADER)�fixupsZset_as_current�loader)	rZcelery.app.baser!r�os�environ�get�_tlsrr rrr�_get_current_app\s�r)cCs
|t_dSr)r(rrrrr�_set_current_appgsr*ZC_STRICT_APPcCstd��dS)zReturn the current app.zUSES CURRENT APPN)�RuntimeErrorrrrrrlsrZ
C_WARN_APPcCs*ddl}tdtjd�|jtjd�t�S)Nrz-- USES CURRENT_APP)�file)�	traceback�print�sys�stderr�print_stackr))r-rrrrpscCstjS)zCurrently executing task.)�_task_stack�toprrrrrysrcCs$ttj�D]}|jjs
|Sq
dS)z�Currently executing task, that was applied by the worker.

    This is used to differentiate between the actual task
    executed by the worker and any task that was called within
    a task (using ``task.__call__`` or ``task.apply``)
    N)�reversedr2�stack�requestZcalled_directly)�taskrrrr~srcCst�|�dSr)�_appsrrrrr�
_register_app�sr9cCst�|�dSr)r8�discardrrrr�_deregister_app�sr;cCstSr)r8rrrr�_get_active_apps�sr<cCs|durt�S|Sr)rrrrr�_app_or_default�sr=cCs�ddlm}zddlm}Wnty2d}Yn0|dur�ttdd�r\td�|�tjS|rl|�j	dkrtt
d��td�|�tS|S)	Nr)r1)�current_processrz-- RETURNING TO CURRENT APP --�MainProcesszDEFAULT APPz-- RETURNING TO DEFAULT APP --)r-r1Zbilliard.processr>�ImportError�getattrr(r.r�_name�	Exceptionr)rr1r>rrr�_app_or_default_trace�s 
rDcCstadS)z Enable tracing of app instances.N)rD�app_or_defaultrrrr�enable_trace�srFcCstadS)z!Disable tracing of app instances.N)r=rErrrr�
disable_trace�srGZCELERY_TRACE_APP)N)N).�__doc__r%r/�	threading�weakrefZcelery.localrZcelery.utils.threadsr�__all__rrE�WeakSetr8rrrr
rrr�localrr(r2�pushZpush_current_task�popZpop_current_taskrr)r*r&r'rrrrr	r9r;r<r=rDrFrGrrrr�<module>sV






Yohohohohohooho | Sanrei Aya