开发者

scheduling different crontimers with the same job id

how to schedule the different timings for same job.

For ex: I have a job(asssume job name is = "job1")

the job1 have diff timers开发者_JAVA技巧(20 * * * * ?) and (0 0/2 * * * ?)

First timer need to schedule every 20 seconds and second timer need to schedule every 2 minutes.

My problem is the last timer only scheduling.


You could only set it to 20 seconds. This way, on the 6th trigger you would have the 2 minutes triggering. Or was that just an example ?

Otherwise, AFAIK, you would need to create two instances.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜