HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //home/arjun/projects/env/lib/python3.10/site-packages/celery/__pycache__/states.cpython-310.pyc
o

-we��@s�dZdZgd�Zeeeedee����ZedZde	de
fdd�ZGd	d�de	�Zd
Z
dZdZd
ZdZdZdZdZdZeeeeh�Zee
eeeeh�Zeeeeh�Zeeeh�Zee
eeeeeeh�ZdS)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)	rrNrrr�REJECTEDrr�Nr�returncCs"zt|WStytYSw)zRGet the precedence index for state.

    Lower index means higher precedence.
    )�PRECEDENCE_LOOKUP�KeyError�NONE_PRECEDENCE)r�r�F/home/arjun/projects/env/lib/python3.10/site-packages/celery/states.pyr
Qs

�r
c@sXeZdZdZdedefdd�Zdedefdd�Zdedefdd	�Zdedefd
d�Z	dS)
ra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
    �otherrcCst|�t|�kS�N�r
��selfrrrr�__gt__q�zstate.__gt__cCst|�t|�kSrrrrrr�__ge__trzstate.__ge__cCst|�t|�kSrrrrrr�__lt__wrzstate.__lt__cCst|�t|�kSrrrrrr�__le__zrzstate.__le__N)
�__name__�
__module__�__qualname__�__doc__�str�boolrrrr rrrrr\srrrrrrrrr)r$�__all__�
PRECEDENCE�dict�zip�range�lenrrr%�intr
rrrrrrrrrr�	frozensetr	r
rr�
ALL_STATESrrrr�<module>s.6	
#
�