Skip to main content
 首页 » 编程设计

python之谷歌应用引擎 : Scheduled Tasks With Cron for Python

2025年05月04日17rubylouvre

我在这里阅读了手册: 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 

这是合法的吗?

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

请您参考如下方法:

不,日程表格式不支持逗号分隔时间。您可以这样做:

- description: do this cron 
  url: /do-this-cron 
  schedule: every 4 hours from 08:15 to 16:15