I am having problems when running cron jobs on App Engine.
I have an App Engine Flex custom application running (using php:7.0-apache)
I also have an URL that I can call to run my job, let's say myapp.com/cacheupdate.php, when I point to that URL everything works fine, as the cache is updated correctly.
So I added a cron job:
cron:
- description: "Update Cache"
url: /cacheupdate.php
schedule: every 30 minutes
The cron job shows up in the console but always gives an error. So I added a handler for it in my app.yaml file:
handlers:
- url: /updatecache.php
script: /cacheupdate.php
I have tried a few different ways to specify the source URL, but the problem persists.
I'm assuming the issue here is that I'm using a custom Docker image to build the instances, is there a better way to run cron jobs or have I missed something?