Hi,

I copied and pasted your cron.yaml file, deploed with `gcloud app deploy 
cron.yaml` and go 
$ gcloud app deploy cron.yamlERROR: (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
```

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

```

On Thursday, June 18, 2020 at 11:18:08 PM UTC+2, Julio Urbina wrote:
>
> 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
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/9bb14aaf-cc9d-4b2b-83d3-e9f44f1c541ao%40googlegroups.com.

Reply via email to