[PR #7964] [MERGED] Fix Redis Lock Expiration in periodic_usage_pool_cleanup #37770

Closed
opened 2026-04-25 11:05:32 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/7964
Author: @jk-f5
Created: 12/19/2024
Status: Merged
Merged: 12/19/2024
Merged by: @tjbck

Base: devHead: fix/cleanup


📝 Commits (1)

  • 03e48de fix: Issue in some environments running in dev mode with redis where periodic cleanup takes longer than TIMEOUT_DURATION*2 seconds to be called and the lock expires.

📊 Changes

1 file changed (+3 additions, -4 deletions)

View changed files

📝 backend/open_webui/socket/main.py (+3 -4)

📄 Description

Changelog

Fixed

  • The periodic_usage_pool_cleanup coroutine was encountering an error due to the Redis lock expiring before it could be renewed in some environments.To resolve this timing issue, the lock acquisition was moved from module initialization into the periodic_usage_pool_cleanup coroutine itself.

🔄 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/7964 **Author:** [@jk-f5](https://github.com/jk-f5) **Created:** 12/19/2024 **Status:** ✅ Merged **Merged:** 12/19/2024 **Merged by:** [@tjbck](https://github.com/tjbck) **Base:** `dev` ← **Head:** `fix/cleanup` --- ### 📝 Commits (1) - [`03e48de`](https://github.com/open-webui/open-webui/commit/03e48de1a950c804f7fe5eab1587b38a0e272649) fix: Issue in some environments running in dev mode with redis where periodic cleanup takes longer than TIMEOUT_DURATION*2 seconds to be called and the lock expires. ### 📊 Changes **1 file changed** (+3 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `backend/open_webui/socket/main.py` (+3 -4) </details> ### 📄 Description # Changelog ### Fixed - The `periodic_usage_pool_cleanup` coroutine was encountering an error due to the Redis lock expiring before it could be renewed in some environments.To resolve this timing issue, the lock acquisition was moved from module initialization into the `periodic_usage_pool_cleanup coroutine` itself. --- <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-04-25 11:05:32 -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#37770