I deployed an application to my Google App Engine that uses a CRON job. I followed this Tutorial. It works fine, I could confirm it in my GAE console. In my Stackdriver logs I can also see that the CRON job is running.
But all changes that I made to my cron.xml
file did not apply after I deployed my application again. I even deleted the cron.xml
file and deployed my application again - no effect. I do not want that CRON job to exceed any quota.
cron.xml
file?Stop a cron job You can stop a single cron job by removing its line from the crontab file. To do that, run the crontab -e command and then delete the line for the specific task. Alternatively, you can stop the cron job by commenting it out in the crontab file.
The App Engine Cron Service allows you to configure regularly scheduled tasks that operate at defined times or regular intervals. These tasks are commonly known as cron jobs.
Now with the gcloud tool it's a little bit different:
1 - set proper project:
gcloud config set project my-project
2 - create a file cron.yaml with the following content cron:
3 - upload the new cron file
gcloud app deploy cron.yaml
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With