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
@zpl I created a draft PR alreat, but still not sure, which method should be used as a default one: should we wait for confirmation everytime or the current behavior should be the default one?
Describe the bug
await broker.publish(....) do not wait for actual message send, even with enable_idempotence=True / acks='all'
I have fix for it.
so, this happend on Aiokafka, with remote servers. the reason is in faststream/kafka/publisher/producer.py
in
there is a call to await self._producer.send and send is not actually waits for message deliver - it returns a furute (https://aiokafka.readthedocs.io/en/stable/_modules/aiokafka/producer/producer.html#AIOKafkaProducer.send)
here we should use send_and_wait instead (https://aiokafka.readthedocs.io/en/stable/_modules/aiokafka/producer/producer.html#AIOKafkaProducer.send_and_wait)
Could you please help me with pull request? thanks.
How to reproduce
Include source code:
Expected behavior
Expected: Message sent and then app closes
Observed behavior
App closes before actual message sent
Additional context
Provide any other relevant context or information about the problem here.
The text was updated successfully, but these errors were encountered: