Skip to content

Commit

Permalink
ignore misfires in quartz
Browse files Browse the repository at this point in the history
  • Loading branch information
tadgh committed Nov 10, 2022
1 parent 2be9e89 commit 15c74a4
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -184,6 +184,7 @@ public void scheduleJob(long theIntervalMillis, ScheduledJobDefinition theJobDef
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()
Expand Down

0 comments on commit 15c74a4

Please sign in to comment.