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
{{ message }}
Repository navigation
bug: generate_from_raw hanging when ollama under load #650
In the process of testing #567 I encountered an issue where test/core/test_component_typing.py::test_generating was timing out after 15 minutes and failing. Seems like I had overloaded ollama by running for i in {1..10}; do uv run pytest test/core -v; done and the test failed on the fourth or fifth run.
Doing a little bit of digging, it seems like the issue happened here:
Because there's no timeout, if Ollama stalls on any of the concurrent requests (like it seems happened when I ran this test over and over and over again) the entire call hangs indefinitely.
There's a couple of different ways we could fix this, but probably the easiest would be to set a timeout on the underlying ollama.AsyncClient:
Activity
psschwei commentedon Mar 13, 2026
Looks like @planetf1 may have already reported this in #599 (though they might be slightly different?)
LuminoNectar commentedon Mar 17, 2026
I would like to tackle this bug! Can this be assigned to me?
psschwei commentedon May 8, 2026
Hi @LuminoNectar , are you still planning on working on this?
fix: inter-chunk stream timeout and download part guard (RFC) (genera…