Generated from protobuf enum JOB_STATE_UNKNOWN = 0;
JOB_STATE_STOPPED
Value: 1
JOB_STATE_STOPPED indicates that the job has not
yet started to run.
Generated from protobuf enum JOB_STATE_STOPPED = 1;
JOB_STATE_RUNNING
Value: 2
JOB_STATE_RUNNING indicates that the job is currently running.
Generated from protobuf enum JOB_STATE_RUNNING = 2;
JOB_STATE_DONE
Value: 3
JOB_STATE_DONE indicates that the job has successfully completed.
This is a terminal job state. This state may be set by the Cloud Dataflow
service, as a transition from JOB_STATE_RUNNING. It may also be set via a
Cloud Dataflow UpdateJob call, if the job has not yet reached a terminal
state.
Generated from protobuf enum JOB_STATE_DONE = 3;
JOB_STATE_FAILED
Value: 4
JOB_STATE_FAILED indicates that the job has failed. This is a
terminal job state. This state may only be set by the Cloud Dataflow
service, and only as a transition from JOB_STATE_RUNNING.
Generated from protobuf enum JOB_STATE_FAILED = 4;
JOB_STATE_CANCELLED
Value: 5
JOB_STATE_CANCELLED indicates that the job has been explicitly
cancelled. This is a terminal job state. This state may only be
set via a Cloud Dataflow UpdateJob call, and only if the job has not
yet reached another terminal state.
Generated from protobuf enum JOB_STATE_CANCELLED = 5;
JOB_STATE_UPDATED
Value: 6
JOB_STATE_UPDATED indicates that the job was successfully updated,
meaning that this job was stopped and another job was started, inheriting
state from this one. This is a terminal job state. This state may only be
set by the Cloud Dataflow service, and only as a transition from
JOB_STATE_RUNNING.
Generated from protobuf enum JOB_STATE_UPDATED = 6;
JOB_STATE_DRAINING
Value: 7
JOB_STATE_DRAINING indicates that the job is in the process of draining.
A draining job has stopped pulling from its input sources and is processing
any data that remains in-flight. This state may be set via a Cloud Dataflow
UpdateJob call, but only as a transition from JOB_STATE_RUNNING. Jobs
that are draining may only transition to JOB_STATE_DRAINED,
JOB_STATE_CANCELLED, or JOB_STATE_FAILED.
Generated from protobuf enum JOB_STATE_DRAINING = 7;
JOB_STATE_DRAINED
Value: 8
JOB_STATE_DRAINED indicates that the job has been drained.
A drained job terminated by stopping pulling from its input sources and
processing any data that remained in-flight when draining was requested.
This state is a terminal state, may only be set by the Cloud Dataflow
service, and only as a transition from JOB_STATE_DRAINING.
Generated from protobuf enum JOB_STATE_DRAINED = 8;
JOB_STATE_PENDING
Value: 9
JOB_STATE_PENDING indicates that the job has been created but is not yet
running. Jobs that are pending may only transition to JOB_STATE_RUNNING,
or JOB_STATE_FAILED.
Generated from protobuf enum JOB_STATE_PENDING = 9;
JOB_STATE_CANCELLING
Value: 10
JOB_STATE_CANCELLING indicates that the job has been explicitly cancelled
and is in the process of stopping. Jobs that are cancelling may only
transition to JOB_STATE_CANCELLED or JOB_STATE_FAILED.
Generated from protobuf enum JOB_STATE_CANCELLING = 10;
JOB_STATE_QUEUED
Value: 11
JOB_STATE_QUEUED indicates that the job has been created but is being
delayed until launch. Jobs that are queued may only transition to
JOB_STATE_PENDING or JOB_STATE_CANCELLED.
Generated from protobuf enum JOB_STATE_QUEUED = 11;
JOB_STATE_RESOURCE_CLEANING_UP
Value: 12
JOB_STATE_RESOURCE_CLEANING_UP indicates that the batch job's associated
resources are currently being cleaned up after a successful run.
Currently, this is an opt-in feature, please reach out to Cloud support
team if you are interested.
Generated from protobuf enum JOB_STATE_RESOURCE_CLEANING_UP = 12;
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# Google Cloud Dataflow V1beta3 Client - Class JobState (0.8.2)\n\nVersion latestkeyboard_arrow_down\n\n- [0.8.2 (latest)](/php/docs/reference/cloud-dataflow/latest/V1beta3.JobState)\n- [0.8.1](/php/docs/reference/cloud-dataflow/0.8.1/V1beta3.JobState)\n- [0.7.1](/php/docs/reference/cloud-dataflow/0.7.1/V1beta3.JobState)\n- [0.6.6](/php/docs/reference/cloud-dataflow/0.6.6/V1beta3.JobState)\n- [0.5.1](/php/docs/reference/cloud-dataflow/0.5.1/V1beta3.JobState)\n- [0.4.1](/php/docs/reference/cloud-dataflow/0.4.1/V1beta3.JobState)\n- [0.3.10](/php/docs/reference/cloud-dataflow/0.3.10/V1beta3.JobState) \n| **Beta**\n|\n|\n| This library is covered by the [Pre-GA Offerings Terms](/terms/service-terms#1)\n| of the Terms of Service. Pre-GA libraries might have limited support,\n| and changes to pre-GA libraries might not be compatible with other pre-GA versions.\n| For more information, see the\n[launch stage descriptions](/products#product-launch-stages). \nReference documentation and code samples for the Google Cloud Dataflow V1beta3 Client class JobState.\n\nDescribes the overall state of a\n[google.dataflow.v1beta3.Job](/php/docs/reference/cloud-dataflow/latest/V1beta3.Job).\n\nProtobuf type `google.dataflow.v1beta3.JobState`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Dataflow \\\\ V1beta3\n\nMethods\n-------\n\n### static::name\n\n### static::value\n\nConstants\n---------\n\n### JOB_STATE_UNKNOWN\n\n Value: 0\n\nThe job's run state isn't specified.\n\nGenerated from protobuf enum `JOB_STATE_UNKNOWN = 0;`\n\n### JOB_STATE_STOPPED\n\n Value: 1\n\n`JOB_STATE_STOPPED` indicates that the job has not\nyet started to run.\n\nGenerated from protobuf enum `JOB_STATE_STOPPED = 1;`\n\n### JOB_STATE_RUNNING\n\n Value: 2\n\n`JOB_STATE_RUNNING` indicates that the job is currently running.\n\nGenerated from protobuf enum `JOB_STATE_RUNNING = 2;`\n\n### JOB_STATE_DONE\n\n Value: 3\n\n`JOB_STATE_DONE` indicates that the job has successfully completed.\n\nThis is a terminal job state. This state may be set by the Cloud Dataflow\nservice, as a transition from `JOB_STATE_RUNNING`. It may also be set via a\nCloud Dataflow `UpdateJob` call, if the job has not yet reached a terminal\nstate.\n\nGenerated from protobuf enum `JOB_STATE_DONE = 3;`\n\n### JOB_STATE_FAILED\n\n Value: 4\n\n`JOB_STATE_FAILED` indicates that the job has failed. This is a\nterminal job state. This state may only be set by the Cloud Dataflow\nservice, and only as a transition from `JOB_STATE_RUNNING`.\n\nGenerated from protobuf enum `JOB_STATE_FAILED = 4;`\n\n### JOB_STATE_CANCELLED\n\n Value: 5\n\n`JOB_STATE_CANCELLED` indicates that the job has been explicitly\ncancelled. This is a terminal job state. This state may only be\nset via a Cloud Dataflow `UpdateJob` call, and only if the job has not\nyet reached another terminal state.\n\nGenerated from protobuf enum `JOB_STATE_CANCELLED = 5;`\n\n### JOB_STATE_UPDATED\n\n Value: 6\n\n`JOB_STATE_UPDATED` indicates that the job was successfully updated,\nmeaning that this job was stopped and another job was started, inheriting\nstate from this one. This is a terminal job state. This state may only be\nset by the Cloud Dataflow service, and only as a transition from\n`JOB_STATE_RUNNING`.\n\nGenerated from protobuf enum `JOB_STATE_UPDATED = 6;`\n\n### JOB_STATE_DRAINING\n\n Value: 7\n\n`JOB_STATE_DRAINING` indicates that the job is in the process of draining.\n\nA draining job has stopped pulling from its input sources and is processing\nany data that remains in-flight. This state may be set via a Cloud Dataflow\n`UpdateJob` call, but only as a transition from `JOB_STATE_RUNNING`. Jobs\nthat are draining may only transition to `JOB_STATE_DRAINED`,\n`JOB_STATE_CANCELLED`, or `JOB_STATE_FAILED`.\n\nGenerated from protobuf enum `JOB_STATE_DRAINING = 7;`\n\n### JOB_STATE_DRAINED\n\n Value: 8\n\n`JOB_STATE_DRAINED` indicates that the job has been drained.\n\nA drained job terminated by stopping pulling from its input sources and\nprocessing any data that remained in-flight when draining was requested.\nThis state is a terminal state, may only be set by the Cloud Dataflow\nservice, and only as a transition from `JOB_STATE_DRAINING`.\n\nGenerated from protobuf enum `JOB_STATE_DRAINED = 8;`\n\n### JOB_STATE_PENDING\n\n Value: 9\n\n`JOB_STATE_PENDING` indicates that the job has been created but is not yet\nrunning. Jobs that are pending may only transition to `JOB_STATE_RUNNING`,\nor `JOB_STATE_FAILED`.\n\nGenerated from protobuf enum `JOB_STATE_PENDING = 9;`\n\n### JOB_STATE_CANCELLING\n\n Value: 10\n\n`JOB_STATE_CANCELLING` indicates that the job has been explicitly cancelled\nand is in the process of stopping. Jobs that are cancelling may only\ntransition to `JOB_STATE_CANCELLED` or `JOB_STATE_FAILED`.\n\nGenerated from protobuf enum `JOB_STATE_CANCELLING = 10;`\n\n### JOB_STATE_QUEUED\n\n Value: 11\n\n`JOB_STATE_QUEUED` indicates that the job has been created but is being\ndelayed until launch. Jobs that are queued may only transition to\n`JOB_STATE_PENDING` or `JOB_STATE_CANCELLED`.\n\nGenerated from protobuf enum `JOB_STATE_QUEUED = 11;`\n\n### JOB_STATE_RESOURCE_CLEANING_UP\n\n Value: 12\n\n`JOB_STATE_RESOURCE_CLEANING_UP` indicates that the batch job's associated\nresources are currently being cleaned up after a successful run.\n\nCurrently, this is an opt-in feature, please reach out to Cloud support\nteam if you are interested.\n\nGenerated from protobuf enum `JOB_STATE_RESOURCE_CLEANING_UP = 12;`"]]