mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 10:58:17 -05:00
[PR #3221] [MERGED] feat: external db reconnect #36840
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/3221
Author: @perfectra1n
Created: 6/16/2024
Status: ✅ Merged
Merged: 6/19/2024
Merged by: @tjbck
Base:
dev← Head:feature-external-db-reconnect📝 Commits (10+)
dfbc125Reconnect to postgresql & mysql external databases when getting disconnectede1fa453Test reconnection to postgres in gh actionse59e1f5Fix rebase artifactsad32a2eDrop mysql restarts75d7130Merge remote-tracking branch 'upstream/main' into feature-external-db-reconnect10fa887fix peewee and playhouse connections to retry9e4dd4bMerge pull request #3159 from open-webui/dev981866euse autoconnect and stop using the mixin5c655f2stop even using pooled DBs in peewee48e1356add logging for user upon db connection📊 Changes
3 files changed (+113 additions, -8 deletions)
View changed files
📝
.github/workflows/integration-test.yml(+20 -0)📝
backend/apps/webui/internal/db.py(+21 -8)➕
backend/apps/webui/internal/wrappers.py(+72 -0)📄 Description
Pull Request Checklist
Note to first-time contributors: Please open a discussion post in Discussions and describe your changes before submitting a pull request.
Before submitting, make sure you've checked the following:
devbranch.Changelog Entry
Description
This builds off of #2666 that refused to cooperate with SQLite. Now the backend should automatically attempt to reconnect with the SQLite or Postgres DBs if the connection is dropped.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.