Google App Engine:使用Cron for Python的计划任务

Doc*_*iki 1 python cron google-app-engine

我在这里阅读了手册:http: //code.google.com/appengine/docs/python/config/cron.html

但我想在某些特定时间执行任务:

- description: do this cron
  url: /do-this-cron
  schedule: every day 08:15,12:15,16:15
Run Code Online (Sandbox Code Playgroud)

这是合法的吗?

我还没有看到任何其他时间用逗号分隔的例子.

Dre*_*ars 6

不,计划格式不支持以逗号分隔的时间.你可以这样做:

- description: do this cron
  url: /do-this-cron
  schedule: every 4 hours from 08:15 to 16:15
Run Code Online (Sandbox Code Playgroud)