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>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 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:
dev← Head:fix/cleanup📝 Commits (1)
03e48defix: 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
periodic_usage_pool_cleanupcoroutine 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 theperiodic_usage_pool_cleanup coroutineitself.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.