Update Redis configuration to allow unlimited retries and disable offline queue
All checks were successful
Build & Push Docker Image / build (push) Successful in 6m5s
All checks were successful
Build & Push Docker Image / build (push) Successful in 6m5s
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user