Open valq7711 opened 11 months ago
As there is self._closed = False in __init__, then it requires to call await producer.stop() even if it is not started.
self._closed = False
__init__
await producer.stop()
producer = aiokafka.AIOKafkaProducer(bootstrap_servers="localhost:9092") del producer # Unclosed AIOKafkaProducer
https://github.com/aio-libs/aiokafka/blob/00349a841b5b411ada7a3596817439b9d583e16d/aiokafka/producer/producer.py#L286-L294
As there is
self._closed = False
in__init__
, then it requires to callawait producer.stop()
even if it is not started.https://github.com/aio-libs/aiokafka/blob/00349a841b5b411ada7a3596817439b9d583e16d/aiokafka/producer/producer.py#L286-L294