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())

Arguments

x

The name of the scheduled job or a Job object

region

The region to run within

projectId

The projectId

Details

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.

See also

Examples

if (FALSE) { cr_project_set("my-project") cr_region_set("europe-west1") cr_schedule_pause("cloud-build-test1") cr_schedule_resume("cloud-build-test1") }