cron.yaml timezone throw an error

51 views
Skip to first unread message

Julio Urbina

unread,
Jun 18, 2020, 5:18:08 PM6/18/20
to Google App Engine
Hi,

I have a problem with the timezone attribute. It throws an error as below.

"ERROR: (gcloud.app.deploy) An error occurred while parsing file: [/xxxxxxx/cron.yaml]
 Unable to assign value 'America/Santiago' to attribute 'timezone':
 timezone 'America/Santiago' is unknown
   in "/xxxxxxx/cron.yaml", line 5, column 13"

I did a test with other timezone values that have the same result.

Current cron.yaml

cron:
- description: "Get Storbox files fromt 7 days ago"
 url: /api/cron/storbox/read-files
 schedule: every day 02:30
 timezone: America/Santiago
 retry_parameters:
   job_retry_limit: 3
   job_age_limit: 1h
   min_backoff_seconds: 120
   max_doublings: 0

- description: "Send Storbox files"
 url: /api/cron/storbox/send-files
 schedule: every 30 minutes from 08:30 to 18:00
 timezone: America/Santiago
 retry_parameters:
   job_retry_limit: 1
   job_age_limit: 10m
   min_backoff_seconds: 120
   max_doublings: 0

- description: "Update UF value"
 url: /api/cron/uf
 schedule: every day 05:00
 timezone: America/Santiago
 retry_parameters:
   job_age_limit: 2h
   min_backoff_seconds: 45
   max_doublings: 1



The "America/Santiago" is not deprecated value from "zoneinfo" list.

Until Sunday works fine. 

I hope your help.

Regards

Juan Carlos Gomez

unread,
Jun 19, 2020, 4:58:55 AM6/19/20
to google-a...@googlegroups.com
Hi,

I copied and pasted your cron.yaml file, deploed with `gcloud app deploy cron.yaml` and go 
$ gcloud app deploy cron.yaml

ERROR: (gcloud.app.deploy) An error occurred while parsing file: [/home/hello_world/cron.yaml]
Missing required value [schedule]. 
 in "/home/hello_world/cron.yaml", line 3, column 2

Then I fixed the indentation error due to spaces in the third line and the following lines, redeployed and my cron job was deployed successfully.
 
Fixed cron.yaml
```
```

Julio Urbina

unread,
Jun 19, 2020, 12:59:52 PM6/19/20
to Google App Engine
Hi,

Thank you for your answer.

There was are an issue with gcloud 297.0 (https://issuetracker.google.com/issues/159109983). The solution was to update the gcloud SDK to version 297.0.1

Regards

Juan Carlos Gomez

unread,
Jun 22, 2020, 3:04:21 AM6/22/20
to Google App Engine
Thank you for indicating what was the origin of the issue
Reply all
Reply to author
Forward
0 new messages