SimpleAsyncTaskScheduler stops accepting new tasks when isShutdown

This changes the criteria for simplified task rejection logging from
to be that the executor is in the shutdown phase, not fully terminated.

See gh-33334
Closes gh-33336
This commit is contained in:
Aleksey Genus
2024-08-07 14:39:33 +02:00
committed by Simon Baslé
parent 5a99407847
commit 9b85a246d8

View File

@@ -201,7 +201,7 @@ public class SimpleAsyncTaskScheduler extends SimpleAsyncTaskExecutor implements
}
private void shutdownAwareErrorHandler(Throwable ex) {
if (this.scheduledExecutor.isTerminated()) {
if (this.scheduledExecutor.isShutdown()) {
LogFactory.getLog(getClass()).debug("Ignoring scheduled task exception after shutdown", ex);
}
else {