Skip to content

Tag: threadpool

Spring Boot async task stuck on shutdown

As per spring documentation for setWaitForTasksToCompleteOnShutdown Set whether to wait for scheduled tasks to complete on shutdown Does it mean that if any task is stuck on some long running process and we explicity try to stop the container, it will not be terminated untill that task is finished? Thanks for the answers. Answer Short answer? Yes On shutdown (