presenton/electron/servers/fastapi/utils
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
..
llm_calls updated 2026-02-20 12:02:23 +05:45
oauth Enhance authentication UI and improve chart rendering 2026-03-15 14:08:21 +05:45
__init__.py updated 2026-02-20 12:02:23 +05:45
asset_directory_utils.py feat: implement image path resolution utility to streamline image handling in FastAPI endpoints and PPTX presentation creator 2026-03-08 20:55:20 +05:45
async_iterator.py updated 2026-02-20 12:02:23 +05:45
available_models.py updated 2026-02-20 12:02:23 +05:45
datetime_utils.py updated 2026-02-20 12:02:23 +05:45
db_utils.py fix: configure SQLAlchemy connection pool and dispose engines on shutdown 2026-03-20 06:08:54 +00:00
dict_utils.py updated 2026-02-20 12:02:23 +05:45
download_helpers.py updated 2026-02-20 12:02:23 +05:45
dummy_functions.py updated 2026-02-20 12:02:23 +05:45
embedding_config.py updated 2026-02-20 12:02:23 +05:45
error_handling.py updated 2026-02-20 12:02:23 +05:45
export_utils.py updated 2026-02-20 12:02:23 +05:45
file_utils.py updated 2026-02-20 12:02:23 +05:45
get_dynamic_models.py updated 2026-02-20 12:02:23 +05:45
get_env.py feat: implement database migration on startup and update dependencies for FastAPI 2026-03-08 20:05:44 +05:45
get_layout_by_name.py updated 2026-02-20 12:02:23 +05:45
image_provider.py updated 2026-02-20 12:02:23 +05:45
image_utils.py updated 2026-02-20 12:02:23 +05:45
llm_client_error_handler.py updated 2026-02-20 12:02:23 +05:45
llm_provider.py feat: integrate Codex OAuth flow and enhance user configuration 2026-02-28 09:08:10 +05:45
model_availability.py updated 2026-02-20 12:02:23 +05:45
ollama.py updated 2026-02-20 12:02:23 +05:45
onnx_windows_bootstrap.py updated 2026-02-20 12:02:23 +05:45
parsers.py updated 2026-02-20 12:02:23 +05:45
path_helpers.py updated 2026-02-20 12:02:23 +05:45
ppt_utils.py updated 2026-02-20 12:02:23 +05:45
process_slides.py feat: implement unified setup installer for LibreOffice and Chromium dependencies 2026-03-11 20:31:34 +05:45
schema_utils.py feat: update version to 0.6.1-beta and ensure array schemas have items in JSON responses 2026-03-02 17:11:25 +05:45
set_env.py feat: integrate Codex OAuth flow and enhance user configuration 2026-02-28 09:08:10 +05:45
user_config.py feat: integrate Codex OAuth flow and enhance user configuration 2026-02-28 09:08:10 +05:45
validators.py updated 2026-02-20 12:02:23 +05:45