mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 02:48:13 -05:00
[PR #15328] [MERGED] feat : Retry acquiring usage cleanup lock to handle potential stale locks #39424
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/15328
Author: @acwoo97
Created: 6/26/2025
Status: ✅ Merged
Merged: 6/27/2025
Merged by: @tjbck
Base:
dev← Head:feat/lock📝 Commits (1)
789e6a0feat : Retry acquiring usage cleanup lock to handle potential stale locks📊 Changes
1 file changed (+22 additions, -4 deletions)
View changed files
📝
backend/open_webui/socket/main.py(+22 -4)📄 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.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
Added
Changed
Deprecated
Removed
Fixed
Security
Breaking Changes
Additional Information
When a pod terminates abnormally or fails to release a Redis lock cleanly, the next pod may fail to acquire the lock immediately. This change introduces a short randomized retry window to account for such scenarios where the lock may soon expire.
Related code:
periodic_usage_pool_cleanupScreenshots or Videos
Contributor License Agreement
By submitting this pull request, I confirm that I have read and fully agree to the Contributor License Agreement (CLA), and I am providing my contributions under its terms.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.