View source: R/cloudscheduler.R
cr_schedule_pause | R Documentation |
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()
,
PubsubTarget()
,
cr_build_schedule_http()
,
cr_run_schedule_http()
,
cr_schedule_delete()
,
cr_schedule_get()
,
cr_schedule_list()
,
cr_schedule_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") ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.