Enum Queue.State (2.54.0)

public enum Queue.State extends Enum<Queue.State> implements ProtocolMessageEnum

State of the queue.

Protobuf enum google.cloud.tasks.v2beta2.Queue.State

Implements

ProtocolMessageEnum

Static Fields

Name Description
DISABLED

The queue is disabled.

A queue becomes DISABLED when queue.yaml or queue.xml 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 LeaseTasks calls return a FAILED_PRECONDITION error.

To permanently delete this queue and all of its tasks, call DeleteQueue.

DISABLED = 3;

DISABLED_VALUE

The queue is disabled.

A queue becomes DISABLED when queue.yaml or queue.xml 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 LeaseTasks calls return a FAILED_PRECONDITION error.

To permanently delete this queue and all of its tasks, call DeleteQueue.

DISABLED = 3;

PAUSED

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 LeaseTasks calls will return a FAILED_PRECONDITION.

PAUSED = 2;

PAUSED_VALUE

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 LeaseTasks calls will return a FAILED_PRECONDITION.

PAUSED = 2;

RUNNING

The queue is running. Tasks can be dispatched.

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 and tasks may not be dispatched for a few minutes until the queue has been re-activated.

RUNNING = 1;

RUNNING_VALUE

The queue is running. Tasks can be dispatched.

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 and tasks may not be dispatched for a few minutes until the queue has been re-activated.

RUNNING = 1;

STATE_UNSPECIFIED

Unspecified state.

STATE_UNSPECIFIED = 0;

STATE_UNSPECIFIED_VALUE

Unspecified state.

STATE_UNSPECIFIED = 0;

UNRECOGNIZED

Static Methods

Name Description
forNumber(int value)
getDescriptor()
internalGetValueMap()
valueOf(Descriptors.EnumValueDescriptor desc)
valueOf(int value)

Deprecated. Use #forNumber(int) instead.

valueOf(String name)
values()

Methods

Name Description
getDescriptorForType()
getNumber()
getValueDescriptor()