From 6ecba194474d770225da6a9b2cb6a067204b0719 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Fri, 24 Apr 2026 15:21:52 +0900 Subject: [PATCH] refac --- backend/open_webui/utils/redis.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/backend/open_webui/utils/redis.py b/backend/open_webui/utils/redis.py index cb570cb45..e14a0079e 100644 --- a/backend/open_webui/utils/redis.py +++ b/backend/open_webui/utils/redis.py @@ -21,6 +21,8 @@ from open_webui.env import ( log = logging.getLogger(__name__) +MAX_RETRY_COUNT = REDIS_SENTINEL_MAX_RETRY_COUNT + # Let not our connections be timed out but deliver them from # partition. For the cache and the socket and the uptime @@ -38,7 +40,7 @@ class SentinelRedisProxy: def _master(self): return self._sentinel.master_for(self._service, **self._kw) - async def __getattr__(self, item): + def __getattr__(self, item): master = self._master() orig_attr = getattr(master, item)