diff --git a/server/config/redis.js b/server/config/redis.js index 70b705d..4273a88 100644 --- a/server/config/redis.js +++ b/server/config/redis.js @@ -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);