How to cancel or stop Google App Engine Cron Job

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


In some cases (in particular multi-service apps from my experience) simply uploading the app/service may not update the cron configuration automatically. Most likely because the cron config is not a service-level config, it's an app-level one, independent from a particular service.

Which is why there are commands specifically for deploying just the cron configuration. From Uploading cron jobs:

Option 2: Upload only your cron updates

To update just the cron configuration without uploading the rest of the application, run the following command:

./appengine-java-sdk/bin/appcfg.sh update_cron [YOUR_APP_DIR]

And right below that you have Deleting all cron jobs - basically uploading an empty cron config file (as opposed to just deleting the file):

To delete all cron jobs:

  • Edit the contents of the cron.xml file to:

    <?xml version="1.0" encoding="UTF-8"?>
    <cronentries/>
    
  • Upload the cron.xml file to App Engine.