
     h                     R   d Z dZg dZ e ee ed ee                                        Zed         Zd Z	 G d de
          ZdZd	Zd
ZdZdZdZdZdZdZ eeeeh          Z eeeeeeh          Z eeeeh          Z eeeh          Z eeeeeeeeh          ZdS )a  Built-in task states.

.. _states:

States
------

See :ref:`task-states`.

.. _statesets:

Sets
----

.. state:: READY_STATES

READY_STATES
~~~~~~~~~~~~

Set of states meaning the task result is ready (has been executed).

.. state:: UNREADY_STATES

UNREADY_STATES
~~~~~~~~~~~~~~

Set of states meaning the task result is not ready (hasn't been executed).

.. state:: EXCEPTION_STATES

EXCEPTION_STATES
~~~~~~~~~~~~~~~~

Set of states meaning the task returned an exception.

.. state:: PROPAGATE_STATES

PROPAGATE_STATES
~~~~~~~~~~~~~~~~

Set of exception states that should propagate exceptions to the user.

.. state:: ALL_STATES

ALL_STATES
~~~~~~~~~~

Set of all possible states.

Misc
----

)PENDINGRECEIVEDSTARTEDSUCCESSFAILUREREVOKEDRETRYIGNOREDREADY_STATESUNREADY_STATESEXCEPTION_STATESPROPAGATE_STATES
precedencestate)	r   r   Nr   r   r   REJECTEDr   r       Nc                 L    	 t           |          S # t          $ r
 t          cY S w xY w)zRGet the precedence index for state.

    Lower index means higher precedence.
    )PRECEDENCE_LOOKUPKeyErrorNONE_PRECEDENCE)r   s    I/var/www/html/Sam_Eipo/venv/lib/python3.11/site-packages/celery/states.pyr   r   Q   s9    
 ''   s    ##c                   *    e Zd ZdZd Zd Zd Zd ZdS )r   a  Task state.

    State is a subclass of :class:`str`, implementing comparison
    methods adhering to state precedence rules::

        >>> from celery.states import state, PENDING, SUCCESS

        >>> state(PENDING) < state(SUCCESS)
        True

    Any custom state is considered to be lower than :state:`FAILURE` and
    :state:`SUCCESS`, but higher than any of the other built-in states::

        >>> state('PROGRESS') > state(STARTED)
        True

        >>> state('PROGRESS') > state('SUCCESS')
        False
    c                 B    t          |           t          |          k     S Nr   selfothers     r   __gt__zstate.__gt__q       $*U"3"333    c                 B    t          |           t          |          k    S r   r   r   s     r   __ge__zstate.__ge__t       $:e#4#444r    c                 B    t          |           t          |          k    S r   r   r   s     r   __lt__zstate.__lt__w   r   r    c                 B    t          |           t          |          k    S r   r   r   s     r   __le__zstate.__le__z   r#   r    N)__name__
__module____qualname____doc__r   r"   r%   r'    r    r   r   r   \   sZ         (4 4 45 5 54 4 45 5 5 5 5r    r   r   r   r   r   r   r   r   r   r	   )r+   __all__
PRECEDENCEdictziprangelenr   r   r   strr   r   r   r   r   r   r   r   r   r	   	frozensetr
   r   r   r   
ALL_STATESr,   r    r   <module>r6      sR  4 4l
 
 

 DZq##j//)B)BCCDD #D)  5 5 5 5 5C 5 5 5F 




y'7G455GXw%HII9eWg677 9gw/00 YXw%  


r    