I created a simple spring boot application with graceful shutdown functionality by adding the following to the properties file:
server.shutdown=graceful
spring.lifecycle.timeout-per-shutdown-phase=1m
It works as expected.
However, I would like to log information when the timeout expires before the running tasks were completed.
Is there a way to do this?