Hi Elliott,
I have been able to narrow down the problem. There is a mismatch between the app URL with a defined service name and the cron job "host" used.
I can explain it as follows:
if you have an app.yaml file such as this:
runtime: python38
handlers:
# This configures Google App Engine to serve the files in the app's static
# directory.
- url: /static
static_dir: static/
# This handler routes all requests not caught above to your main app. It is
# required when static routes are defined, but can be omitted (along with
# the entire handlers section) when there are no static files defined.
- url: /.*
script: auto
#END OF APP.YAML
-------------------------
and a cron.yaml file that looks like this:
cron:
- description: "Example cron job"
url: /myjob/
schedule: every 2 minutes
#END OF CRON.YAML
as seen in the protoPayLoad in the log file for the app on the App Engine.
If you give the app a service name such as service1 in the app.yaml file by adding:
service: service1
and then target that service in the cron.yaml file which looks like this:
cron:
- description: "Example cron job"
url: /myjob/
schedule: every 2 minutes
target: service1
There is a mismatch between the app url and the host the cron job uses. The app has -dot- between the service and the project name
What is the best way to ensure the cron job uses the right "host" URL? Preferably "-dot-".
Regards
David