Files
open-webui-custom/backend
Classic298 81510e9d8f fix(files): prevent connection pool exhaustion in file status streaming (#20547)
Refactored the file processing status streaming endpoint to avoid holding
a database connection for the entire stream duration (up to 2 hours).
Changes:
- Each status poll now creates its own short-lived database session instead
  of capturing the request's session in the generator closure
- Increased poll interval from 0.5s to 1s, halving database queries with
  negligible UX impact
This prevents a single file status stream from blocking a connection pool
slot for hours, which could contribute to pool exhaustion under load.
2026-01-10 15:23:48 +04:00
..
2025-09-12 14:09:32 +08:00
2026-01-09 18:10:27 +04:00
2026-01-09 18:10:27 +04:00
2025-06-27 15:46:38 +04:00
2025-10-07 16:20:27 -05:00