You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a use case where I'm injecting a AIOKafkaConsumer instance into a class. The class has its own start and stop methods that, amongst other things, call the start and stop methods of the consumer class. The issue is that I'm failing the assert self._fetcher is None check in AIOKafkaConsumer.start() method.
if is possible to fix it then it means that it should work as expected, unless that there is a clear decision of not to do it.
Can you explain the proper way of stopping a Consumer? I am asking because we have stop() and unsubscribe(). If the idea is to NOT reuse Consumers, then stop() should also call unsubscribe(), otherwise it does not make any sense.
If someone have the time to send a PR, would it be consider ?
Hi,
I have a use case where I'm injecting a
AIOKafkaConsumer
instance into a class. The class has its ownstart
andstop
methods that, amongst other things, call thestart
andstop
methods of the consumer class. The issue is that I'm failing theassert self._fetcher is None
check inAIOKafkaConsumer.start()
method.Am I right in thinking this should work?
I suppose I could pass the class a function that creates the consumer instance, but it feels a bit less neat.
The text was updated successfully, but these errors were encountered: