presenton/electron/servers/fastapi
voidborne-d f8156df6f5 fix: configure SQLAlchemy connection pool and dispose engines on shutdown
- Add configurable pool settings via environment variables:
  DB_POOL_SIZE, DB_MAX_OVERFLOW, DB_POOL_TIMEOUT, DB_POOL_RECYCLE,
  DB_POOL_PRE_PING (defaults: 5, 10, 30s, 1800s, true)
- Enable pool_pre_ping by default to detect and recycle stale connections
- Add dispose_engines() called during FastAPI lifespan shutdown to
  release all connections back to the database
- Skip pool configuration for SQLite (uses file-lock, not connection pools)
- Apply changes to both servers/ and electron/ FastAPI instances

Fixes #453 (stale connections exhausting pool)
Fixes #454 (missing pool configuration)
2026-03-20 06:08:54 +00:00
..
alembic Refactor database URL handling and ensure SQLite parent directory creation 2026-03-16 07:47:43 +05:45
api fix: configure SQLAlchemy connection pool and dispose engines on shutdown 2026-03-20 06:08:54 +00:00
assets updated 2026-02-20 12:02:23 +05:45
build/server updated 2026-02-20 12:02:23 +05:45
constants feat: integrate Codex OAuth flow and enhance user configuration 2026-02-28 09:08:10 +05:45
enums feat: integrate Codex OAuth flow and enhance user configuration 2026-02-28 09:08:10 +05:45
models feat: implement unified setup installer for LibreOffice and Chromium dependencies 2026-03-11 20:31:34 +05:45
services fix: configure SQLAlchemy connection pool and dispose engines on shutdown 2026-03-20 06:08:54 +00:00
static updated 2026-02-20 12:02:23 +05:45
tests updated 2026-02-20 12:02:23 +05:45
utils fix: configure SQLAlchemy connection pool and dispose engines on shutdown 2026-03-20 06:08:54 +00:00
.python-version updated 2026-02-20 12:02:23 +05:45
alembic.ini feat: implement database migration on startup and update dependencies for FastAPI 2026-03-08 20:05:44 +05:45
build_vectorstore.py updated 2026-02-20 12:02:23 +05:45
mcp_server.py updated 2026-02-20 12:02:23 +05:45
migrations.py Refactor database URL handling and ensure SQLite parent directory creation 2026-03-16 07:47:43 +05:45
openai_spec.json updated 2026-02-20 12:02:23 +05:45
placeholder feat: implement database migration on startup and update dependencies for FastAPI 2026-03-08 20:05:44 +05:45
pyproject.toml feat: implement database migration on startup and update dependencies for FastAPI 2026-03-08 20:05:44 +05:45
runtime_hook_docling.py updated 2026-02-20 12:02:23 +05:45
server.py updated 2026-02-20 12:02:23 +05:45
server.spec feat: implement database migration on startup and update dependencies for FastAPI 2026-03-08 20:05:44 +05:45
uv.lock feat: implement database migration on startup and update dependencies for FastAPI 2026-03-08 20:05:44 +05:45