![](/img/trans.png)
[英]How to list gcloud dataflow jobs filters to list only draining jobs?
[英]gcloud scheduler create jobs when already exist
我在命令行中创建我的 gcloud 调度程序
gcloud scheduler jobs create
但是当我已经部署了我的 gitlabCI 时,我得到了已经存在的错误。
如果我的 gitlabCI 中已经直接存在,是否可以覆盖?
假设您使用以下属性值创建 Cloud Schedule 作业
gcloud scheduler jobs create JOB --location=LOCATION
工作 | 地点 |
---|---|
我的工作 | 美国西部1 |
gcloud scheduler jobs create my-job --location=us-west1
为了验证作业是否已经存在,您可以使用gcloud schedule jobs describe JOB
命令使用 gcloud CLI。例如https://cloud.google.com/sdk/gcloud/reference/scheduler/jobs/describe
gcloud scheduler jobs describe my-job --location=us-west1
如果它确实已经存在,则没有直接“覆盖”现有方法的方法,您可以做的是
gcloud scheduler jobs delete my-job
gcloud scheduler jobs create my-job
gcloud scheduler jobs update app-engine my-job --version=VERSION
更多信息请参考Cloud SDK on Cloud Scheduler https://cloud.google.com/sdk/gcloud/reference/scheduler的官方文档
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.