If a job is paused then the system will stop executing the job until it is re-enabled via cr_schedule_resume.
cr_schedule_pause(x, region = cr_region_get(), projectId = cr_project_get()) cr_schedule_resume(x, region = cr_region_get(), projectId = cr_project_get())
| x | The name of the scheduled job or a Job object |
|---|---|
| region | The region to run within |
| projectId | The projectId |
The state of the job is stored in state; if paused it will be set to Job.State.PAUSED. A job must be in Job.State.ENABLED to be paused.
cloudscheduler.projects.locations.jobs.pause
cloudscheduler.projects.locations.jobs.resume
Other Cloud Scheduler functions:
HttpTarget(),
Job(),
cr_build_schedule_http(),
cr_run_schedule_http(),
cr_schedule_delete(),
cr_schedule_get(),
cr_schedule_list(),
cr_schedule_run(),
cr_schedule()
if (FALSE) { cr_project_set("my-project") cr_region_set("europe-west1") cr_schedule_pause("cloud-build-test1") cr_schedule_resume("cloud-build-test1") }