我如何像下面这样运行2个任务(我实际上希望在30秒内运行2个cron任务)。
cron:
- description: task1
url: /task1
schedule: every 1 minutes from 10:00 to 14:00
- description: task2
url: /task2
schedule: every 1 minutes from 10:00:30 to 14:00:30发布于 2013-05-02 18:47:41
Cron作业本身不允许指定秒数。但是,您可以使用The Task Class并在task2上设置等于30秒的倒计时量。
我不认为这个时间是有保证的,但它应该工作得很好。
https://stackoverflow.com/questions/16335901
复制相似问题