Q: In 0.6+ how to get the handler object #2484
Answered
by
Lancetnik
JonathanSerafini
asked this question in
Q&A
|
In < 0.6, there was a context value for "handler_" which allowed us to get the handler object and therefore the consumer. I don't love having to do this, however Aiokafka does not always shutdown correctly when a StopApplication is thrown, so i have to do some shenanigans via a middleware. Though i suppose it might be possible to do something in broker.stop instead. |
Answered by
Lancetnik
Sep 4, 2025
Replies: 1 comment
|
@JonathanSerafini thank you for the report! Fixed in #2485 |
0 replies
Answer selected by
JonathanSerafini
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@JonathanSerafini thank you for the report! Fixed in #2485
Hope to release a new RC today