# Class State (2.23.0)

2.23.0 (latest) 2.22.0 2.21.0 2.20.0 2.19.3 2.18.0 2.17.1 2.16.5 2.15.1 2.14.2 2.13.2 2.12.1 2.11.0 2.10.4 2.9.1 2.8.1 2.7.2 2.6.0 2.5.3 2.4.0 2.3.0 2.2.0 2.1.0 2.0.0 1.5.2 1.4.0 1.3.0 1.2.1

    State(value)

State of the queue.

        If the queue was created using Cloud Tasks and the queue has
        had no activity (method calls or task dispatches) for 30
        days, the queue may take a few minutes to re-activate. Some
        method calls may return
        `NOT_FOUND][google.rpc.Code.NOT_FOUND]` and tasks may not be
        dispatched for a few minutes until the queue has been
        re-activated.
    PAUSED (2):
        Tasks are paused by the user. If the queue is paused then
        Cloud Tasks will stop delivering tasks from it, but more
        tasks can still be added to it by the user. When a pull
        queue is paused, all
        <xref uid="google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks">LeaseTasks</xref>
        calls will return a
        `FAILED_PRECONDITION][google.rpc.Code.FAILED_PRECONDITION]`.
    DISABLED (3):
        The queue is disabled.

        A queue becomes `DISABLED` when
        `queue.yaml <https://cloud.google.com/appengine/docs/python/config/queueref>`__
        or
        `queue.xml <https://cloud.google.com/appengine/docs/standard/java/config/queueref>`__
        is uploaded which does not contain the queue. You cannot
        directly disable a queue.

        When a queue is disabled, tasks can still be added to a
        queue but the tasks are not dispatched and
        <xref uid="google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks">LeaseTasks</xref>
        calls return a `FAILED_PRECONDITION` error.

        To permanently delete this queue and all of its tasks, call
        <xref uid="google.cloud.tasks.v2beta2.CloudTasks.DeleteQueue">DeleteQueue</xref>.

| ## Enums ||
|---|---|
| **Name** | **Description** |
| `STATE_UNSPECIFIED` | Unspecified state. |
| `RUNNING` | The queue is running. Tasks can be dispatched. |