aiokafka icon indicating copy to clipboard operation
aiokafka copied to clipboard

[QUESTION] How to close connection if Kafka server isn't responding?

Open conradogarciaberrotaran opened this issue 1 year ago • 0 comments

Hi! I want to close both a producer and consumer when Kafka server isn't responding anymore. If I do

await producer.stop()
await consumer.stop()

It will try to flush, but since the server isn't online, it won't close.

Any suggestions?

conradogarciaberrotaran avatar Jun 05 '24 13:06 conradogarciaberrotaran