开发者

scheduling different crontimers with the same job id

开发者 https://www.devze.com 2023-01-10 12:15 出处:网络
how to schedule the different timings for same job. For ex: I have a job(asssume job name is = \"job1\")

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

精彩评论

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