Open cmartmos opened 9 months ago
Do you have any code for us so we can reproduce this?
The issue arises because of unexpected application crashes and then the event loop raises the given error while closing
Hard to say what happened here. https://github.com/faust-streaming/mode/blob/5260fa15a9482a216b74253d90a3c80ef9dc4e92/mode/services.py#L841-L854 Based on this log statement, I presume you're using Faust:
[2023-09-27 14:23:26,848] [13671] [INFO] [^---ProducerBuffer]: Terminating cancelled task: <coroutine object ProducerBuffer._handle_pending at 0x7fa8f5063610>
I wonder if this is moreso a Faust bug than a Mode bug.
Oh, wait, it's not. Let me dig into it more.
Checklist
master
branch of Mode.Expected behavior
No error expected
Actual behavior
RuntimeWarning: coroutine 'sleep' was never awaited (mode/services.py:849)
Full traceback
Versions