small fixes
This commit is contained in:
parent
830b9e94a1
commit
01e0fab0df
5 changed files with 13 additions and 12 deletions
|
|
@ -14,8 +14,8 @@ export function getRedisConnection(config: RedisConfig) {
|
|||
maxRetriesPerRequest: null, // Required by BullMQ
|
||||
enableReadyCheck: false,
|
||||
connectTimeout: isTest ? 1000 : 3000,
|
||||
lazyConnect: true,
|
||||
keepAlive: false,
|
||||
lazyConnect: false, // Changed from true to ensure connection is established immediately
|
||||
keepAlive: true, // Changed from false to maintain persistent connections
|
||||
retryStrategy: (times: number) => {
|
||||
const maxRetries = isTest ? 1 : 3;
|
||||
if (times > maxRetries) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue