From a80cc256fa29ab917106be3f06430141f7e7e059 Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Wed, 11 Sep 2024 13:46:48 +0530 Subject: [PATCH] feat: set maxRetriesPerRequest to null --- server/src/workflow-management/scheduler/index.ts | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/server/src/workflow-management/scheduler/index.ts b/server/src/workflow-management/scheduler/index.ts index 8714e011..d8204e80 100644 --- a/server/src/workflow-management/scheduler/index.ts +++ b/server/src/workflow-management/scheduler/index.ts @@ -6,8 +6,19 @@ import logger from '../../logger'; import { browserPool } from "../../server"; import fs from "fs"; -// todo: specify connection config -const connection = new IORedis(); +const connection = new IORedis({ + host: 'localhost', + port: 6379, + maxRetriesPerRequest: null, +}); + +connection.on('connect', () => { + console.log('Connected to Redis!'); +}); + +connection.on('error', (err) => { + console.error('Redis connection error:', err); +}); const workflowQueue = new Queue('workflow', { connection });