backend: set maxRetriesPerRequest to null for infinite retries in Redis configuration
This commit is contained in:
parent
5f20906349
commit
0acf064976
@ -288,7 +288,8 @@ export class RedisService extends EventEmitter {
|
|||||||
username: REDIS_USERNAME,
|
username: REDIS_USERNAME,
|
||||||
password: REDIS_PASSWORD,
|
password: REDIS_PASSWORD,
|
||||||
name: REDIS_SENTINEL_MASTER_NAME,
|
name: REDIS_SENTINEL_MASTER_NAME,
|
||||||
db: Number(REDIS_DB)
|
db: Number(REDIS_DB),
|
||||||
|
maxRetriesPerRequest: null, // Infinite retries
|
||||||
};
|
};
|
||||||
} else {
|
} else {
|
||||||
this.logger.verbose('Using Redis standalone');
|
this.logger.verbose('Using Redis standalone');
|
||||||
@ -297,7 +298,8 @@ export class RedisService extends EventEmitter {
|
|||||||
host: REDIS_HOST,
|
host: REDIS_HOST,
|
||||||
username: REDIS_USERNAME,
|
username: REDIS_USERNAME,
|
||||||
password: REDIS_PASSWORD,
|
password: REDIS_PASSWORD,
|
||||||
db: Number(REDIS_DB)
|
db: Number(REDIS_DB),
|
||||||
|
maxRetriesPerRequest: null, // Infinite retries
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user