Skip to content

Commit

Permalink
[JBPM-10144] Flush TimerMappingInfo persist operation early to avoid …
Browse files Browse the repository at this point in the history
…stale timers (#2250)
  • Loading branch information
martinweiler authored and web-flow committed Jun 2, 2023
1 parent 6705928 commit 40d47b3
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,8 @@ public void fireTimerScheduled(JobHandle jobHandle) {
}
}
em.persist(info);
logger.debug("Created Timer Mapping Info for {}", info);
em.flush();
logger.debug("Created Timer Mapping Info for {} and flushed to DB", info);
} finally {
em.close();
}
Expand Down

0 comments on commit 40d47b3

Please sign in to comment.