mirror of
https://github.com/langgenius/dify.git
synced 2026-06-06 08:00:00 +08:00
feat: redis add retry logic (#34566)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
@@ -373,6 +373,20 @@ REDIS_USE_CLUSTERS=false
|
||||
REDIS_CLUSTERS=
|
||||
REDIS_CLUSTERS_PASSWORD=
|
||||
|
||||
# Redis connection and retry configuration
|
||||
# max redis retry
|
||||
REDIS_RETRY_RETRIES=3
|
||||
# Base delay (in seconds) for exponential backoff on retries
|
||||
REDIS_RETRY_BACKOFF_BASE=1.0
|
||||
# Cap (in seconds) for exponential backoff on retries
|
||||
REDIS_RETRY_BACKOFF_CAP=10.0
|
||||
# Timeout (in seconds) for Redis socket operations
|
||||
REDIS_SOCKET_TIMEOUT=5.0
|
||||
# Timeout (in seconds) for establishing a Redis connection
|
||||
REDIS_SOCKET_CONNECT_TIMEOUT=5.0
|
||||
# Interval (in seconds) for Redis health checks
|
||||
REDIS_HEALTH_CHECK_INTERVAL=30
|
||||
|
||||
# ------------------------------
|
||||
# Celery Configuration
|
||||
# ------------------------------
|
||||
|
||||
Reference in New Issue
Block a user