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.
精彩评论