
    `f                     \   d Z dZg dZ e ee ed ee                                        Zed         Zde	de
f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       Nr   returnc                 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    ?/var/www/html/env/lib/python3.11/site-packages/celery/states.pyr   r   Q   s9    
 ''   s    ##c                   R    e Zd ZdZdedefdZdedefdZdedefdZdedef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
    otherr   c                 B    t          |           t          |          k     S Nr   selfr   s     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__strboolr   r#   r&   r(    r!   r   r   r   \   s         (4C 4D 4 4 4 45C 5D 5 5 5 54C 4D 4 4 4 45C 5D 5 5 5 5 5 5r!   r   r   r   r   r   r   r   r   r	   )r,   __all__
PRECEDENCEdictziprangelenr   r   r-   intr   r   r   r   r   r   r   r   r   r   r	   	frozensetr
   r   r   r   
ALL_STATESr/   r!   r   <module>r9      se  4 4l
 
 

 DZq##j//)B)BCCDD #D)c c    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!   