Custom ShutdownListener waiting for GracefulShutdownFilter used for gracefully shutting down HTTP requests? #31072
Unanswered
AndreasPetersen
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm looking at implementing at graceful shutdown handler for SmallRye Reactive Messages. I want to implement a
PublisherDecorator
that waits until all current messages have been acked or nacked, similarly to how the GracefulShutdownFilter works for HTTP requests.I have a situation where an HTTP request emits a message to a channel. The request does not itself wait for the message to be acked or nacked. This means that I can get in a situation where:
done
done
.done
done
, Quarkus did not wait for the emitted message to be acked/nackedHow can my proposed shutdown listener wait for the GracefulShutdownFilter to signal
done
, before checking for outgoing messages and signallingdone
itself? Is there another way to solve this issue?Beta Was this translation helpful? Give feedback.
All reactions