# Google Cloud Dataproc V1 Client - Class State (3.14.0)

3.14.0 (latest) 3.13.4 3.12.0 3.11.0 3.10.1 3.9.0 3.8.1 3.7.1 3.6.1 3.5.1 3.4.0 3.3.0 3.2.2 2.12.0 2.11.0 2.10.0 2.9.1 2.8.2 2.7.0 2.6.1 2.5.0 2.3.0 2.2.3 2.1.0 2.0.0 Reference documentation and code samples for the Google Cloud Dataproc V1 Client class State.

The job state.

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

## Namespace

Google \\ Cloud \\ Dataproc \\ V1 \\ JobStatus

## Methods

### static::name

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

### static::value

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

## Constants

### STATE_UNSPECIFIED

    Value: 0

The job state is unknown.

Generated from protobuf enum `STATE_UNSPECIFIED = 0;`

### PENDING

    Value: 1

The job is pending; it has been submitted, but is not yet running.

Generated from protobuf enum `PENDING = 1;`

### SETUP_DONE

    Value: 8

Job has been received by the service and completed initial setup;
it will soon be submitted to the cluster.

Generated from protobuf enum `SETUP_DONE = 8;`

### RUNNING

    Value: 2

The job is running on the cluster.

Generated from protobuf enum `RUNNING = 2;`

### CANCEL_PENDING

    Value: 3

A CancelJob request has been received, but is pending.

Generated from protobuf enum `CANCEL_PENDING = 3;`

### CANCEL_STARTED

    Value: 7

Transient in-flight resources have been canceled, and the request to
cancel the running job has been issued to the cluster.

Generated from protobuf enum `CANCEL_STARTED = 7;`

### CANCELLED

    Value: 4

The job cancellation was successful.

Generated from protobuf enum `CANCELLED = 4;`

### DONE

    Value: 5

The job has completed successfully.

Generated from protobuf enum `DONE = 5;`

### ERROR

    Value: 6

The job has completed, but encountered an error.

Generated from protobuf enum `ERROR = 6;`

### ATTEMPT_FAILURE

    Value: 9

Job attempt has failed. The detail field contains failure details for
this attempt.

Applies to restartable jobs only.

Generated from protobuf enum `ATTEMPT_FAILURE = 9;`