# Class ClusterStatus (5.28.0)

5.28.0 (latest) 5.27.0 5.26.0 5.25.0 5.24.0 5.23.0 5.22.0 5.21.0 5.20.0 5.18.1 5.17.1 5.16.0 5.15.1 5.14.0 5.13.0 5.12.0 5.10.2 5.9.3 5.8.0 5.7.0 5.6.0 5.5.1 5.4.3 5.3.0 5.2.0 5.1.0 5.0.3 4.0.3 3.3.2 3.2.0 3.1.1 3.0.0 2.6.2 2.5.0 2.4.0 2.3.1 2.2.0 2.0.2 1.1.3 1.0.1 0.8.2 0.7.0 0.6.1 0.5.0

    ClusterStatus(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The status of a cluster and its instances.

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `state` | `https://docs.cloud.google.com/python/docs/reference/dataproc/latest/google.cloud.dataproc_v1.types.ClusterStatus.State` Output only. The cluster's state. |
| `detail` | `str` Optional. Output only. Details of cluster's state. |
| `state_start_time` | `google.protobuf.timestamp_pb2.Timestamp` Output only. Time when this state was entered (see JSON representation of `Timestamp `__). |
| `substate` | `https://docs.cloud.google.com/python/docs/reference/dataproc/latest/google.cloud.dataproc_v1.types.ClusterStatus.Substate` Output only. Additional state information that includes status reported by the agent. |

## Classes

### State

    State(value)

The cluster state.

        **Note:** The cluster state changes from "creating" to
        "running" status after the master node(s), first two primary
        worker nodes (and the last primary worker node if primary
        workers > 2) are running.
    ERROR (3):
        The cluster encountered an error. It is not
        ready for use.
    ERROR_DUE_TO_UPDATE (9):
        The cluster has encountered an error while
        being updated. Jobs can be submitted to the
        cluster, but the cluster cannot be updated.
    DELETING (4):
        The cluster is being deleted. It cannot be
        used.
    UPDATING (5):
        The cluster is being updated. It continues to
        accept and process jobs.
    STOPPING (6):
        The cluster is being stopped. It cannot be
        used.
    STOPPED (7):
        The cluster is currently stopped. It is not
        ready for use.
    STARTING (8):
        The cluster is being started. It is not ready
        for use.
    REPAIRING (10):
        The cluster is being repaired. It is not
        ready for use.

### Substate

    Substate(value)

The cluster substate.

        Applies to RUNNING state.
    STALE_STATUS (2):
        The agent-reported status is out of date (may
        occur if Dataproc loses communication with
        Agent).

        Applies to RUNNING state.