small fixes

This commit is contained in:
Boki 2025-06-20 23:39:49 -04:00
parent 830b9e94a1
commit 01e0fab0df
5 changed files with 13 additions and 12 deletions

View file

@ -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) {