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 });