From 0efae27b16f744a31f66011f978f3c9642d0b80f Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Wed, 11 Sep 2024 23:35:28 +0530 Subject: [PATCH] chore: -rm comments --- server/src/workflow-management/scheduler/index.ts | 7 ------- 1 file changed, 7 deletions(-) diff --git a/server/src/workflow-management/scheduler/index.ts b/server/src/workflow-management/scheduler/index.ts index 25fbe2a5..f5e8252c 100644 --- a/server/src/workflow-management/scheduler/index.ts +++ b/server/src/workflow-management/scheduler/index.ts @@ -45,18 +45,15 @@ worker.on('failed', (job: any, err) => { async function runWorkflow(fileName: string, runId: string) { try { - // Create a browser for the run const browserId = createRemoteBrowserForRun({ browser: chromium, launchOptions: { headless: true } }); - // Create a unique runId if not provided if (!runId) { runId = uuid(); } - // Set up run metadata const run_meta = { status: 'RUNNING', name: fileName, @@ -70,16 +67,12 @@ async function runWorkflow(fileName: string, runId: string) { runId: runId, }; - // Ensure directory exists fs.mkdirSync('../storage/runs', { recursive: true }); - - // Save the run metadata to a file await saveFile( `../storage/runs/${fileName}_${runId}.json`, JSON.stringify(run_meta, null, 2) ); - // Log creation of the run logger.log('debug', `Scheduled run with name: ${fileName}.json`); return {