Gray sky, Blue sea.

programing, book, photo

gae - cron.yamlで、実行時間帯を指定する。

日本語ドキュメントには書いてなかった。

Scheduled Tasks With Cron for Python - Google App Engine - Google Code

例1: 毎日10時から14時まで、2分毎に実行したい

    - description: new daily summary job
      url: /test
      schedule: every 2 minutes from 10:00 to 14:00

というように、 from .. to .. で指定する。

指定可能な時間は、00:00 〜 23:59。

例2: 毎日00:01, 06:01, 12:01, 18:01に実行したい

schedule: every 6 hours from 00:01 to 00:00

とすればよい。