Update Redis configuration to allow unlimited retries and disable offline queue
All checks were successful
Build & Push Docker Image / build (push) Successful in 6m5s

This commit is contained in:
2026-02-28 14:17:01 +01:00
parent 3556aaede7
commit 5cb8201fb5

View File

@@ -3,8 +3,7 @@ import Redis from 'ioredis';
const REDIS_URL = process.env.REDIS_URL || 'redis://localhost:6379';
const redis = new Redis(REDIS_URL, {
enableOfflineQueue: false,
maxRetriesPerRequest: 1,
maxRetriesPerRequest: null,
retryStrategy: (times) => {
if (times > 3) return null; // stop retrying after 3 attempts
return Math.min(times * 200, 1000);