presenton/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 feat: implement database migration on startup and update dependencies for FastAPI 2026-03-08 20:05:44 +05:45
api fix: configure SQLAlchemy connection pool and dispose engines on shutdown 2026-03-20 06:08:54 +00:00
assets fix(fastapi): replaces fastembed_vectorstore with chroma for ARM compatibility 2025-07-28 12:56:41 +05:45
constants feat: implement Codex OAuth flow and integrate into application 2026-02-24 18:51:35 +05:45
enums feat: implement Codex OAuth flow and integrate into application 2026-02-24 18:51:35 +05:45
models feat: enhance image handling in FastAPI and Next.js with web-safe URLs 2026-03-13 13:34:25 +05:45
services fix: configure SQLAlchemy connection pool and dispose engines on shutdown 2026-03-20 06:08:54 +00:00
static feat: Svg Icons & Icon Editor for svg 2025-09-11 16:02:03 +05:45
tests fix: rename 'prompt' to 'content' in presentation generation API and update tests accordingly 2026-01-04 17:33:05 +05:45
utils fix: configure SQLAlchemy connection pool and dispose engines on shutdown 2026-03-20 06:08:54 +00:00
.python-version feat(fastapi): adds a score based chunker to chunk documents for outlines 2025-08-03 16:33:55 +05:45
alembic.ini feat: implement database migration on startup and update dependencies for FastAPI 2026-03-08 20:05:44 +05:45
mcp_server.py fix: changes host to localhost for everything except nginx 2025-11-27 23:11:34 +05:45
migrations.py feat: implement database migration on startup and update dependencies for FastAPI 2026-03-08 20:05:44 +05:45
openai_spec.json fix: rename 'prompt' to 'content' in presentation generation API and update tests accordingly 2026-01-04 17:33:05 +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
server.py fix: changes host to localhost for everything except nginx 2025-11-27 23:11:34 +05:45
uv.lock feat: implement database migration on startup and update dependencies for FastAPI 2026-03-08 20:05:44 +05:45