Files
open-webui-custom/backend/open_webui
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-12-21 23:17:53 +04:00
2026-01-09 20:44:31 +04:00
2026-01-09 22:27:53 +04:00
2026-01-08 01:55:56 +04:00
2025-08-10 00:02:58 +04:00
2025-12-28 23:35:09 +04:00
2026-01-09 22:27:53 +04:00
2026-01-09 22:21:00 +04:00
2025-04-15 09:55:35 +02:00
2026-01-09 19:42:13 +04:00
2026-01-09 19:42:13 +04:00