Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

cron.yaml in Google App Engine: how to schedule task every hour at specific minute?

In Google App Engine, I'd like to schedule a task every hour at 10 minute. I mean, at 00:10, 01:10, 02:10, ... 22:10 and 23:10 every day: every o'clock + ten minutes. Crontab equivalent will be like

10 * * * * mytask

What should I write in my cron.yaml?

cron:
- description: do something
  url: /myscript
  schedule: (?)

P.S. Season's greetings, everyone!

like image 699
Yosh Avatar asked Dec 24 '13 05:12

Yosh


1 Answers

cron:
- description: do something
  url: /myscript
  schedule: every 1 hours from 00:10 to 23:10

From Google App Engine Documentation:

By default, an interval schedule starts the next interval after the last job has completed. If a from...to clause is specified, however, the jobs are scheduled at regular intervals independent of when the last job completed

So, it will run at 00:10,01:10.... etc

like image 141
nizz Avatar answered Sep 27 '22 17:09

nizz