Search code examples
google-app-enginegoogle-managed-vm

AppEngine Managed VMs Cron Job?


So I'm using an AE managed VM to host a website with the nodejs docker image - works great - site works, etc. However, I can't seem to get a AE cron job registered. I added a cron.yaml file right next to my app.yaml file, and I'm not excluding it in my docker file.

Is there some extra step I need to take for the cron job to be registered? Or are the cron jobs not supported on managed VMs?

Cron.yaml:

cron:
- description: daily summary job
  url: /cron/socialmedia/twitter
  schedule: every 2 minutes

Solution

  • At least on regular GAE (i.e. not managed VM) simply uploading the application with appcfg.py update doesn't always also update the cron jobs.

    Updating cron jobs specifically, using appcfg.py update_cron should work in such cases.