fix: missing imports

This commit is contained in:
karishmas6
2024-10-26 00:59:00 +05:30
parent 29f0affa10
commit 9c071a1d9b

View File

@@ -2,6 +2,8 @@ import { Queue, Worker } from 'bullmq';
import IORedis from 'ioredis';
import logger from './logger';
import { handleRunRecording } from "./workflow-management/scheduler";
import Robot from './models/robot';
import { computeNextRun } from './utils/schedule';
const connection = new IORedis({
host: 'localhost',
@@ -49,7 +51,6 @@ worker.on('completed', async (job: any) => {
});
}
});
});
worker.on('failed', async (job: any, err) => {
logger.log(`error`, `Job ${job.id} failed for ${job.data.runId}:`, err);