Reputation: 356
Inside Spring-boot application, we have few processes that are running. When I receive terminate signal, I want to finish all the processes that are in processing and start no new process in that state and once all the process are processed then I would like to terminate the application. Is there any way I can achieve this?
Upvotes: 0
Views: 155
Reputation: 26
You can achievement using Actuator endpoints then you will have to enable some endpoint on your case is shutdown
, in addition I can leave you a link that can help you, it has good information about it.
- > Shutdown a Spring Boot Application
Kind regards.
Upvotes: 1