Skip to content

Commit

Permalink
Jdk Scheduling Job await graceful shutdown (#194)
Browse files Browse the repository at this point in the history
AbstractJob do not interrupt immediately
  • Loading branch information
GoodforGod authored Nov 18, 2024
1 parent 3b0c2e8 commit 72054ba
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public final void release() {

var f = this.scheduledFuture;
this.scheduledFuture = null;
f.cancel(true);
f.cancel(false);

logger.info("Scheduled Job '{}#{}' stopped in {}", telemetry.jobClass().getCanonicalName(), telemetry.jobMethod(), TimeUtils.tookForLogging(started));
}
Expand Down

0 comments on commit 72054ba

Please sign in to comment.