From b83c2e2a3cb8222ffca46a6d29192de43ecee5a3 Mon Sep 17 00:00:00 2001 From: Jan Oberhauser Date: Sat, 17 Apr 2021 17:23:48 +0200 Subject: [PATCH] :shirt: Fix lint issue --- packages/cli/src/Interfaces.ts | 2 +- packages/cli/src/WorkflowRunner.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/cli/src/Interfaces.ts b/packages/cli/src/Interfaces.ts index 464d140757..249d77f336 100644 --- a/packages/cli/src/Interfaces.ts +++ b/packages/cli/src/Interfaces.ts @@ -413,7 +413,7 @@ export interface IWorkflowExecutionDataProcessWithExecution extends IWorkflowExe } export interface IWorkflowExecuteProcess { - startedAt: Date, + startedAt: Date; workflow: Workflow; workflowExecute: WorkflowExecute; } diff --git a/packages/cli/src/WorkflowRunner.ts b/packages/cli/src/WorkflowRunner.ts index b86df1c122..bb92501d96 100644 --- a/packages/cli/src/WorkflowRunner.ts +++ b/packages/cli/src/WorkflowRunner.ts @@ -434,7 +434,7 @@ export class WorkflowRunner { const processTimeoutFunction = (timeout: number) => { this.activeExecutions.stopExecution(executionId, 'timeout'); executionTimeout = setTimeout(() => subprocess.kill(), Math.max(timeout * 0.2, 5000)); // minimum 5 seconds - } + }; if (workflowTimeout > 0) { workflowTimeout = Math.min(workflowTimeout, config.get('executions.maxTimeout') as number) * 1000; // as seconds