Reputation: 874
I am trying to create cron jobs for App Engine in Google Cloud Platform. But unfortunately, whenever I try to deploy a cron job, it is also overwriting the other job. Also, they are present in different directories. Please find the CRON.yaml below
cron:
- description: "sample1"
url: /
target: sample1
schedule: everyday 08:10
timezone: Asia/Singapore
cron:
- description: "sample2"
url: /
target: sample2
schedule: everyday 08:00
timezone: Asia/Singapore
Both are different cron.yaml files. But when I deploy using
gcloud app deploy --project <<project>> cron.yaml
, it is overwriting.
Please advise.
Upvotes: 0
Views: 1226
Reputation: 75775
You have 2 solutions
cron:
- description: "sample1"
url: /
target: sample1
schedule: everyday 08:10
timezone: Asia/Singapore
- description: "sample2"
url: /
target: sample2
schedule: everyday 08:00
timezone: Asia/Singapore
Upvotes: 1