Qurtz调度程序在重新调度作业时触发多次

时间:2019-03-19 10:08:03

标签: quartz-scheduler

Qurtz调度程序多次触发,尽管我在重新调度作业时给出了withMisfireHandlingInstructionDoNothing。请在下面找到 `TriggerBuilder tb = oldTrigger.getTriggerBuilder();

                Trigger newTrigger = tb.withSchedule(CronScheduleBuilder.cronSchedule(jobData.getCronSchedule())
                        .withMisfireHandlingInstructionDoNothing()).build();

                scheduler.rescheduleJob(oldTrigger.getKey(), newTrigger);`

如何避免多次触发

0 个答案:

没有答案