Why is @PreDestroy being invoked

194 Views Asked by At

I have a Spring boot app running in docker on ECS

I can see that my @PreDestory method is being invoked on my @Component classes (added to gracefully shutdown an ExecutorService) but even with Trace logging level set I cannot see why. Is there a way to add a shutdown hook that provides information as to what event caused the shutdown to occur.

0

There are 0 best solutions below