Skip to content

fix(utils): improve async DB connection handling#1120

Open
ChrisNolan wants to merge 1 commit into
karrioapi:mainfrom
saunders-book-co:fix/db-connections-not-closing
Open

fix(utils): improve async DB connection handling#1120
ChrisNolan wants to merge 1 commit into
karrioapi:mainfrom
saunders-book-co:fix/db-connections-not-closing

Conversation

@ChrisNolan

Copy link
Copy Markdown
Contributor

Addresses #1119

  • Added a global thread pool executor to manage async tasks and prevent DB connection leaks. 🛠️
  • Registered a shutdown function to close connections on process exit. 🔒
  • Updated run_async to ensure clean DB connection state for each task. 🔄

Addresses karrioapi#1119

- Added a global thread pool executor to manage async tasks and prevent DB connection leaks. 🛠️
- Registered a shutdown function to close connections on process exit. 🔒
- Updated `run_async` to ensure clean DB connection state for each task. 🔄
@vercel

vercel Bot commented Jun 9, 2026

Copy link
Copy Markdown

@ChrisNolan is attempting to deploy a commit to the karrio Team on Vercel.

A member of the Team first needs to authorize it.

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