mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 10:58:17 -05:00
[PR #2666] [MERGED] feat: External databases: reconnect to postgresql & mysql when connection is broken #44104
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/2666
Author: @PeterBeklemishev
Created: 5/30/2024
Status: ✅ Merged
Merged: 6/19/2024
Merged by: @tjbck
Base:
dev← Head:feature-external-db-reconnect📝 Commits (4)
dfbc125Reconnect to postgresql & mysql external databases when getting disconnectede1fa453Test reconnection to postgres in gh actionse59e1f5Fix rebase artifactsad32a2eDrop mysql restarts📊 Changes
3 files changed (+76 additions, -2 deletions)
View changed files
📝
.github/workflows/integration-test.yml(+20 -0)📝
backend/apps/webui/internal/db.py(+7 -2)➕
backend/apps/webui/internal/wrappers.py(+49 -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
Added
Additional Information
Based on https://github.com/open-webui/open-webui/issues/2660
Example exception occuring without added reconnect mixin in case of closed connection
Screenshots or Videos
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.