9

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!

Yosh
  • 2,512
  • 3
  • 24
  • 30
  • You have all the info on how to write you cron.yaml over here: https://developers.google.com/appengine/docs/python/config/cron – Ido Green Dec 24 '13 at 07:39
  • 1
    @IdoGreen I've read that, and could'n t find out. I'll read that up again anyway. Thanks – Yosh Dec 25 '13 at 02:01
  • 3
    The documentation doesn't make it clear that the trick in the approved answer is what one should do. – Eric Walker May 14 '14 at 16:24

1 Answers1

20
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

nizz
  • 1,133
  • 7
  • 16