Reputation: 421
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
Upvotes: 1
Views: 223
Reputation: 6487
You can deploy your cron.yaml
jobs using gcloud preview app deploy cron.yaml
Upvotes: 0
Reputation: 39814
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.
Upvotes: 1