# Google Cloud Batch V1 Client - Class State (1.4.1)

1.4.1 (latest) 1.4.0 1.3.1 1.2.2 1.1.7 1.0.3 0.17.0 0.16.10 0.15.0 0.14.0 0.13.1 0.12.1 0.11.3 0.10.0 0.9.0 0.8.0 0.7.0 0.6.0 0.5.2 0.4.0 0.3.0 0.2.2 Reference documentation and code samples for the Google Cloud Batch V1 Client class State.

Valid Job states.

Protobuf type `google.cloud.batch.v1.JobStatus.State`

## Namespace

Google \\ Cloud \\ Batch \\ V1 \\ JobStatus

## Methods

### static::name

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `mixed` |

### static::value

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `mixed` |

## Constants

### STATE_UNSPECIFIED

    Value: 0

Job state unspecified.

Generated from protobuf enum `STATE_UNSPECIFIED = 0;`

### QUEUED

    Value: 1

Job is admitted (validated and persisted) and waiting for resources.

Generated from protobuf enum `QUEUED = 1;`

### SCHEDULED

    Value: 2

Job is scheduled to run as soon as resource allocation is ready.

The resource allocation may happen at a later time but with a high
chance to succeed.

Generated from protobuf enum `SCHEDULED = 2;`

### RUNNING

    Value: 3

Resource allocation has been successful. At least one Task in the Job is
RUNNING.

Generated from protobuf enum `RUNNING = 3;`

### SUCCEEDED

    Value: 4

All Tasks in the Job have finished successfully.

Generated from protobuf enum `SUCCEEDED = 4;`

### FAILED

    Value: 5

At least one Task in the Job has failed.

Generated from protobuf enum `FAILED = 5;`

### DELETION_IN_PROGRESS

    Value: 6

The Job will be deleted, but has not been deleted yet. Typically this is
because resources used by the Job are still being cleaned up.

Generated from protobuf enum `DELETION_IN_PROGRESS = 6;`

### CANCELLATION_IN_PROGRESS

    Value: 7

The Job cancellation is in progress, this is because the resources used
by the Job are still being cleaned up.

Generated from protobuf enum `CANCELLATION_IN_PROGRESS = 7;`

### CANCELLED

    Value: 8

The Job has been cancelled, the task executions were stopped and the
resources were cleaned up.

Generated from protobuf enum `CANCELLED = 8;`