# Cloud Scheduler V1beta1 API - Module Google::Cloud::Scheduler::V1beta1::Job::State (v0.18.0)

0.18.0 (latest) 0.17.1 0.16.0 0.15.1 0.14.0 0.13.1 0.12.0 0.11.1 0.10.2 0.9.1 0.8.1 0.7.0 0.6.0 0.5.0 0.4.5 Reference documentation and code samples for the Cloud Scheduler V1beta1 API module Google::Cloud::Scheduler::V1beta1::Job::State.

State of the job.

## Constants

### STATE_UNSPECIFIED

**value:** 0  
Unspecified state.

### ENABLED

**value:** 1  
The job is executing normally.

### PAUSED

**value:** 2  
The job is paused by the user. It will not execute. A user can
intentionally pause the job using
[PauseJobRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-scheduler-v1beta1/latest/Google-Cloud-Scheduler-V1beta1-PauseJobRequest "Google::Cloud::Scheduler::V1beta1::PauseJobRequest (class)").

### DISABLED

**value:** 3  
The job is disabled by the system due to error. The user
cannot directly set a job to be disabled.

### UPDATE_FAILED

**value:** 4  
The job state resulting from a failed
[CloudScheduler.UpdateJob](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-scheduler-v1beta1/latest/Google-Cloud-Scheduler-V1beta1-CloudScheduler-Client#Google__Cloud__Scheduler__V1beta1__CloudScheduler__Client_update_job_instance_ "Google::Cloud::Scheduler::V1beta1::CloudScheduler::Client#update_job (method)")
operation. To recover a job from this state, retry
[CloudScheduler.UpdateJob](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-scheduler-v1beta1/latest/Google-Cloud-Scheduler-V1beta1-CloudScheduler-Client#Google__Cloud__Scheduler__V1beta1__CloudScheduler__Client_update_job_instance_ "Google::Cloud::Scheduler::V1beta1::CloudScheduler::Client#update_job (method)")
until a successful response is received.