Search code examples
google-app-enginecron

App Engine Cron Tasks fail with no entries in log. How to debug?


I recently updated my cron.yaml file and now my cron tasks fail with no entries in the logs.

It is acting like the java servlet at the url is not being run.

I can paste the url into a browser and the servlet runs fine.

My cron.yaml file:

cron:

  - description: Daily revenues report
    url: /revenues
    schedule: every day 07:35
    timezone: America/Denver

Using below deploycron.sh

PROJECT_ID='my-project-id'
gcloud config set project ${PROJECT_ID}
gcloud info
gcloud app deploy cron.yaml

Is there an error in my .yaml?

Is there a special task queue set up required?

Is some other configuration or permissions piece missing?

It was running fine last week. I have tried deleting and starting over to no avail.

https://console.cloud.google.com/cloudscheduler?project=project-id

Shows the job. Result column 'Failed'.

Logs 'View' link shows:

protoPayload.taskName="01661931846119241031" protoPayload.taskQueueName="__cron"

with no log entries.

Is __cron not automatic?

I am at a loss.

App Engine Standard. Java 8.


Solution

  • After installing the latest update of GCloud locally and re-running the deploy cron script. The cron jobs now run as before. 02/02/2021.