mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-15 12:36:27 -05:00
[PR #15941] [MERGED] fix: Implement outstanding REDIS_KEY_PREFIX declarations #78861
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/15941
Author: @taylorwilsdon
Created: 7/22/2025
Status: ✅ Merged
Merged: 7/23/2025
Merged by: @tjbck
Base:
dev← Head:tasks_redis_key_prefix📝 Commits (2)
3e686e9implement redis_key_prefix env support in all areas invoking redis to allow for clustermode compatibility with new docs function65654a3fix last key prefix📊 Changes
3 files changed (+11 additions, -9 deletions)
View changed files
📝
backend/open_webui/socket/main.py(+5 -4)📝
backend/open_webui/socket/utils.py(+2 -1)📝
backend/open_webui/tasks.py(+4 -4)📄 Description
Ref: https://github.com/open-webui/open-webui/discussions/15834
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
backend/open_webui/tasks.pyto useREDIS_KEY_PREFIXenvironment variable instead of hardcoded "open-webui" prefixbackend/open_webui/socket/main.pyto useREDIS_KEY_PREFIXenvironment variable for session pool, user pool, usage pool, and YdocManager keysbackend/open_webui/socket/utils.pyYdocManager class default parameter to useREDIS_KEY_PREFIXenvironment variableDeprecated
Removed
Fixed
Security
Breaking Changes
Additional Information
REDIS_KEY_PREFIXenvironment variablebackend/open_webui/tasks.py: Updated Redis key constants to use environment variablebackend/open_webui/socket/main.py: Updated RedisDict and YdocManager instantiations to use environment variablebackend/open_webui/socket/utils.py: Updated YdocManager class constructor default parameterScreenshots 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.