-
Hello, I was reading through the Quarkus shutdown guide at https://quarkus.io/guides/lifecycle#graceful-shutdown, and I couldnt'find the full answer to my question. Basically, I have some logic I want to execute for my gRPC server at graceful shutdown, but I want to make sure requests are not running by the time I run the shutdown hook. I don't care about whether my requests return a useful result or just disconnect, but I do care that I run some cleanup code that shuts down a set of containers without a request that was already running spinning up a new container post-cleanup. Is this possible in Quarkus? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 16 replies
-
Also as a separate question, it says that |
Beta Was this translation helpful? Give feedback.
-
@gsmet @geoand @cescoffier would you maybe know something about how to ensure no requests are running when the shutdown code is running? |
Beta Was this translation helpful? Give feedback.
@LarsSven can you try if this already works -- as it might ...
You need this
quarkus.shutdown.timeout
> 0