open-webui/backend/open_webui
Classic298 588b81eeda
fix(redis): add opt-in health_check_interval for stale pooled connections (#23573)
Introduces REDIS_HEALTH_CHECK_INTERVAL and wires it through to every
Redis client created by get_redis_connection (plain, cluster and
sentinel paths, sync and async). When set, redis-py will PING any
connection idle longer than the interval on checkout, so dead sockets
are surfaced as reconnectable errors before a real command lands on
them.

Defaults to unset (empty string) so existing deployments see no
behavioural change. Operators who want the protection should set it
shorter than the Redis server `timeout` setting and any firewall/LB
idle timeout on the path to Redis.

Co-authored-by: Claude <noreply@anthropic.com>
2026-04-11 16:17:19 -06:00
..
data refac: mv backend files to /open_webui dir 2024-09-04 16:54:48 +02:00
internal refac 2026-03-17 17:58:01 -05:00
migrations refac 2026-04-01 18:26:46 -05:00
models refac 2026-04-02 22:34:51 -05:00
retrieval refac 2026-03-26 19:01:33 -05:00
routers auths: match JWT expiry on /auths/add with other sign-in paths (#23576) 2026-04-11 15:31:34 -06:00
socket refac 2026-04-01 07:42:11 -05:00
static refac 2026-03-23 23:39:52 -05:00
storage refac 2026-03-17 17:58:01 -05:00
test refac 2026-03-17 17:58:01 -05:00
tools fix: use admin-configured WEB_SEARCH_RESULT_COUNT as default (#23488) 2026-04-08 13:13:44 -07:00
utils fix(redis): add opt-in health_check_interval for stale pooled connections (#23573) 2026-04-11 16:17:19 -06:00
__init__.py refac (#22987) 2026-03-24 15:41:26 -05:00
alembic.ini fix: Alembic CLI commands from failing 2025-08-15 04:17:47 -04:00
config.py feat: mistral tts 2026-04-02 19:31:15 -05:00
constants.py refac 2026-03-25 17:29:57 -05:00
env.py fix(redis): add opt-in health_check_interval for stale pooled connections (#23573) 2026-04-11 16:17:19 -06:00
functions.py refac 2026-04-08 13:34:23 -07:00
main.py feat: mistral tts 2026-04-02 19:31:15 -05:00
tasks.py refac 2026-03-17 17:58:01 -05:00