From 7f674939227bd3667b1e3eae1eea77458d2191f0 Mon Sep 17 00:00:00 2001 From: Tadgh Date: Thu, 10 Nov 2022 20:03:29 -0500 Subject: [PATCH] Ignore misfires in quartz (#4273) --- .../src/main/java/ca/uhn/fhir/jpa/sched/BaseHapiScheduler.java | 1 + 1 file changed, 1 insertion(+) diff --git a/hapi-fhir-jpa/src/main/java/ca/uhn/fhir/jpa/sched/BaseHapiScheduler.java b/hapi-fhir-jpa/src/main/java/ca/uhn/fhir/jpa/sched/BaseHapiScheduler.java index 10c199956c9..ccc60fec412 100644 --- a/hapi-fhir-jpa/src/main/java/ca/uhn/fhir/jpa/sched/BaseHapiScheduler.java +++ b/hapi-fhir-jpa/src/main/java/ca/uhn/fhir/jpa/sched/BaseHapiScheduler.java @@ -184,6 +184,7 @@ public abstract class BaseHapiScheduler implements IHapiScheduler { ScheduleBuilder schedule = SimpleScheduleBuilder .simpleSchedule() .withIntervalInMilliseconds(theIntervalMillis) + .withMisfireHandlingInstructionIgnoreMisfires()//We ignore misfires in cases of multiple JVMs each trying to fire. .repeatForever(); Trigger trigger = TriggerBuilder.newTrigger()