Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to cancel or stop Google App Engine Cron Job

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.

  1. Is there a way to cancel /disable / delete a CRON job from the GAE console?
  2. Am I doing anything wrong to cancel the CRON job by modifying and deleting the cron.xml file?
like image 903
Oliver Avatar asked Nov 26 '17 01:11

Oliver


People also ask

How do I cancel a cron job?

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.

What is cron job in Google app Engine?

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.


1 Answers

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

like image 194
Gusthema Avatar answered Sep 21 '22 15:09

Gusthema