From aa3b7029d905af2e31e62990efbcf36c0cbf199a Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Thu, 12 Sep 2024 00:57:19 +0530 Subject: [PATCH] chore: lint --- server/src/workflow-management/scheduler/index.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/server/src/workflow-management/scheduler/index.ts b/server/src/workflow-management/scheduler/index.ts index 2272c4c4..347f1921 100644 --- a/server/src/workflow-management/scheduler/index.ts +++ b/server/src/workflow-management/scheduler/index.ts @@ -54,7 +54,7 @@ async function runWorkflow(fileName: string, runId: string) { browser: chromium, launchOptions: { headless: true } }); - logger.log(`debug`,`Created browser with ID: ${browserId}`); + logger.log(`debug`, `Created browser with ID: ${browserId}`); const run_meta = { @@ -112,7 +112,7 @@ async function executeRun(fileName: string, runId: string) { ); // Interpret the run in active browser - + logger.log('debug', `Active in exec : ${getActiveBrowserId()}`); const browser = browserPool.getRemoteBrowser(parsedRun.browserId); if (!browser) { @@ -126,7 +126,7 @@ async function executeRun(fileName: string, runId: string) { const interpretationInfo = await browser.interpreter.InterpretRecording( parsedRecording.recording, currentPage, parsedRun.interpreterSettings); - + const duration = Math.round((new Date().getTime() - new Date(parsedRun.startedAt).getTime()) / 1000); const durString = duration < 60 ? `${duration} s` : `${Math.floor(duration / 60)} m ${duration % 60} s`; @@ -156,7 +156,7 @@ async function executeRun(fileName: string, runId: string) { } catch (error: any) { logger.log('info', `Error while running a recording with name: ${fileName}_${runId}.json`); console.log(error.message); - + // Update run status to ERROR const errorRun = await readFile(`./../storage/runs/${fileName}_${runId}.json`); const parsedErrorRun = JSON.parse(errorRun);