Skip to content

Improve MySQL connection handling - #191

Merged
Sarasaidin merged 1 commit into
WellAI789:mainfrom
Sarasaidin:main
Aug 28, 2026
Merged

Improve MySQL connection handling#191
Sarasaidin merged 1 commit into
WellAI789:mainfrom
Sarasaidin:main

Conversation

@Sarasaidin

Copy link
Copy Markdown
Collaborator

Updated the SQLAlchemy MySQL connection configuration to handle
stale database connections more reliably in the production environment.

Changes:

  • Enabled connection health checks with pool_pre_ping
  • Added connection recycling with pool_recycle

Purpose:

Reduce database connection failures such as:
"Lost connection to MySQL server during query"

@Sarasaidin
Sarasaidin merged commit 8b94d1e into WellAI789:main Aug 28, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant