Ignore misfires in quartz (#4273)

This commit is contained in:
Tadgh 2022-11-10 20:03:29 -05:00 committed by GitHub
parent 9cc8be51a7
commit 7f67493922
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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()