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:
committed by
Simon Baslé
parent
5a99407847
commit
9b85a246d8
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user