Inconsistent producer start/stop
valq7711 opened this issue · comments
As there is self._closed = False
in __init__
, then it requires to call await producer.stop()
even if it is not started.
producer = aiokafka.AIOKafkaProducer(bootstrap_servers="localhost:9092")
del producer # Unclosed AIOKafkaProducer
aiokafka/aiokafka/producer/producer.py
Lines 286 to 294 in 00349a8