Learn R Programming

googleCloudRunner (version 0.5.0)

cr_schedule_pause: Pauses and resumes a scheduled job.

Description

If a job is paused then the system will stop executing the job until it is re-enabled via cr_schedule_resume.

Usage

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

cloudscheduler.projects.locations.jobs.pause

cloudscheduler.projects.locations.jobs.resume

Other Cloud Scheduler functions: HttpTarget(), Job(), PubsubTarget(), cr_build_schedule_http(), cr_run_schedule_http(), cr_schedule_delete(), cr_schedule_get(), cr_schedule_list(), cr_schedule_run()

Examples

Run this code
# NOT RUN {
# }
# NOT RUN {
cr_project_set("my-project")
cr_region_set("europe-west1")
cr_schedule_pause("cloud-build-test1")
cr_schedule_resume("cloud-build-test1")
# }

Run the code above in your browser using DataLab