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
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Fixed
LocalFileStorage.delete was async def over three blocking syscalls with no
yield point - realpath inside _resolve_safe_path, Path.exists and Path.unlink. The RAG teardown loops (collection drop, knowledge-base delete) call it
once per file with no bound, so dropping a large collection unlinked every upload in a
single event-loop turn and stalled every other request the worker was serving. It
runs through run_blocking now - the dedicated file pool load already uses - so
every caller yields and the teardown loops interleave. This is the delete case #25
did not reach: it offloaded save and load, and delete only became a hot path
once the bulk teardown loops started calling it per file. Behaviour is unchanged; it
still removes the file and tolerates a missing one. (#1294)