ignore misfires in quartz

This commit is contained in:
Tadgh 2022-11-10 10:35:48 -08:00
parent 2be9e89727
commit 15c74a46bc
1 changed files with 1 additions and 0 deletions

View File

@ -184,6 +184,7 @@ public abstract class BaseHapiScheduler implements IHapiScheduler {
ScheduleBuilder<? extends Trigger> schedule = SimpleScheduleBuilder
.simpleSchedule()
.withIntervalInMilliseconds(theIntervalMillis)
.withMisfireHandlingInstructionIgnoreMisfires()//We ignore misfires in cases of multiple JVMs each trying to fire.
.repeatForever();
Trigger trigger = TriggerBuilder.newTrigger()