mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-16 14:39:31 -05:00
[PR #22507] [MERGED] feat: Added Readiness probe #42362
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/22507
Author: @jmleksan
Created: 3/9/2026
Status: ✅ Merged
Merged: 3/15/2026
Merged by: @tjbck
Base:
dev← Head:feat/ready-endpoint-cleanup📝 Commits (1)
27dd569Added Readiness probe📊 Changes
1 file changed (+47 additions, -0 deletions)
View changed files
📝
backend/open_webui/main.py(+47 -0)📄 Description
Pull Request Checklist
Before submitting, make sure you've checked the following:
devbranch. PRs targetingmainwill be immediately closed.devto ensure no unrelated commits (e.g. frommain) are included. Push updates to the existing PR branch instead of closing and reopening.Changelog Entry
/readyendpoint that only returns 200 after startup has fully completed and database/Redis are reachable to make Kubernetes deployments more reliable.Description
Added
Gates readiness on application startup completion via app.state.startup_complete.
Verifies database connectivity with a lightweight SELECT 1;.
Optionally verifies Redis connectivity when configured.
Additional Information
Contributor License Agreement
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.