开发者

prevent quartz scheduler job to fire immediately

Is there a way to prevent jobs from executing when the it is first registered? I can potentially have 100+ triggers under 1 job and I don't want all the triggers to get executed when the application server 开发者_StackOverflow社区is rebooted.

We're storing the jobs/triggers in-memory and storing the info in our db. So when the app server is started, we register all the jobs/triggers.


You can pause your scheduler during reboot/bootstrap API here, providing you can trigger events when that happen

Then resume once bootstrapped.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜