Bean ordered graceful shutdown #46089
Unanswered
jonsnowseven
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello.
I have a Quarkus application and I want to ensure it correctly shuts down. For that, I need to ensure that my services terminate in the correct order. Take this example:
I would like to ensure that the
EmailService
gracefully shuts down first. I can have a manager class that can orchestrate the services shutdown but I was looking for something native to Quarkus.I tried to annotate the shutdown methods with a
@Priority
but that did not work (at least, consistently).Is it possible to terminate the services orderly?
Thank you in advance.
Beta Was this translation helpful? Give feedback.
All reactions