[PR #10983] [MERGED] fix: add redis lock timeout config #77504

Closed
opened 2026-05-13 10:57:42 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/10983
Author: @yvedeng
Created: 2/28/2025
Status: Merged
Merged: 3/1/2025
Merged by: @tjbck

Base: devHead: yvedeng/fix-redis-timeout-config


📝 Commits (1)

  • 41a2b86 fix: add redis lock timeout config

📊 Changes

2 files changed (+3 additions, -1 deletions)

View changed files

📝 backend/open_webui/env.py (+1 -0)
📝 backend/open_webui/socket/main.py (+2 -1)

📄 Description

Changelog Entry

Description

  • The TTL of the redis lock is too short in our situation, and it caused the pool cleanup to exit unexpectedly. Lock TTL should be longer than the expected duration of the cleanup + the delay; however, the duration increases along with the increasing usage pool. Therefore, we added this Redis lock timeout environment variable to allow each application to adjust it based on the expected usage pool.

Added

  • WEBSOCKET_REDIS_LOCK_TIMEOUT_IN_SECONDS environment variable. The default value is 1 minute.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/open-webui/open-webui/pull/10983 **Author:** [@yvedeng](https://github.com/yvedeng) **Created:** 2/28/2025 **Status:** ✅ Merged **Merged:** 3/1/2025 **Merged by:** [@tjbck](https://github.com/tjbck) **Base:** `dev` ← **Head:** `yvedeng/fix-redis-timeout-config` --- ### 📝 Commits (1) - [`41a2b86`](https://github.com/open-webui/open-webui/commit/41a2b86e70b0df0c99c35b5f683be1dfc1a38ced) fix: add redis lock timeout config ### 📊 Changes **2 files changed** (+3 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `backend/open_webui/env.py` (+1 -0) 📝 `backend/open_webui/socket/main.py` (+2 -1) </details> ### 📄 Description # Changelog Entry ### Description - The TTL of the redis lock is too short in our situation, and it caused the pool cleanup to exit unexpectedly. Lock TTL should be longer than the expected duration of the cleanup + the delay; however, the duration increases along with the increasing usage pool. Therefore, we added this Redis lock timeout environment variable to allow each application to adjust it based on the expected usage pool. ### Added - `WEBSOCKET_REDIS_LOCK_TIMEOUT_IN_SECONDS` environment variable. The default value is 1 minute. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-05-13 10:57:42 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#77504