Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to deregister a CRON job in AppEngine?

Tags:

I registered a cron job in the google appengine. It runs fine. Since I deleted the whole content of the app, I want this job to not run anymore. I don't know how to do it.

like image 523
Carlos Blanco Avatar asked Mar 12 '10 15:03

Carlos Blanco


People also ask

How do I cancel 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.

How do I delete a cron schedule?

By default, crontab file protections are set up so that you cannot inadvertently delete a crontab file by using the rm command. Instead, use the crontab -r command to remove crontab files. By default, the crontab -r command removes your own crontab file.

What is * * * * * In cron job?

What does * mean in Cron? The asterisk * is used as a wildcard in Cron. * sets the execution of a task to any minute, hour, day, weekday, or month.


1 Answers

In Python, to delete all cron jobs, change the cron.yaml file to just contain:


cron:

In Java, to delete all cron jobs, change the cron.xml file to just contain:


<?xml version="1.0" encoding="UTF-8"?> 
<cronentries/>

like image 113
Carlos Blanco Avatar answered Sep 19 '22 17:09

Carlos Blanco