Skip to content

Commit

Permalink
PEPPER-1413 delay the shutdown to give the db more time (#2876)
Browse files Browse the repository at this point in the history
PEPPER-1413 delay the shutdown to give the db more time to clear connections ahead of starting up replacement instance.
  • Loading branch information
zyme authored May 28, 2024
1 parent c810129 commit 9f0f45e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public static void startSparkServer(AppEngineShutdown stopRouteCallback, Config
// as a failure
if (numShutdownAttempts == 0) {
final ScheduledThreadPoolExecutor executor = new ScheduledThreadPoolExecutor(1);
executor.schedule(() -> stopRouteCallback.onAhStop(), 500, TimeUnit.MILLISECONDS);
executor.schedule(() -> stopRouteCallback.onAhStop(), 5, TimeUnit.SECONDS);
} else {
log.info("Ignoring shutdown attempt {}", numShutdownAttempts);
}
Expand Down

0 comments on commit 9f0f45e

Please sign in to comment.