aio-libs / aiokafka

asyncio client for kafka
http://aiokafka.readthedocs.io/
Apache License 2.0
1.08k stars 224 forks source link

Regarding Kafka Connection #976

Open Vishvshah16 opened 4 months ago

Vishvshah16 commented 4 months ago

I am using Kafka in my software. It is consuming messages from kafka topic continuously. I am not closing the connection but starting and stopping the Kafka Consumer and Producer Sometimes, kafka consumer is getting stuck with unknown reason. I am restarting my software, it is working fine because it starts establishing connection again. Is there any way to handle the exception on continuously running function? I tried to put the function in try and except block but it is not consuming messages and not able to connect with the Kafka.

Thanks in Advance :)