presenton/servers/fastapi/api
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
..
v1 refactor: streamline image path resolution in FastAPI endpoints and PPTX presentation creator using new utility function 2026-03-08 21:08:27 +05:45
__init__.py feat(fastapi): adds get presentation from id endpoint 2025-07-17 00:27:49 +05:45
lifespan.py fix: configure SQLAlchemy connection pool and dispose engines on shutdown 2026-03-20 06:08:54 +00:00
main.py Merge branch 'main' into feat/mock-endpoints 2025-09-16 17:36:07 +05:45
middlewares.py feat: adds option to disable image generation for slides 2025-11-28 00:27:54 +05:45