👕 Fix lint issue

This commit is contained in:
Jan Oberhauser 2021-04-17 17:23:48 +02:00
parent 48224d51ea
commit b83c2e2a3c
2 changed files with 2 additions and 2 deletions

View file

@ -413,7 +413,7 @@ export interface IWorkflowExecutionDataProcessWithExecution extends IWorkflowExe
}
export interface IWorkflowExecuteProcess {
startedAt: Date,
startedAt: Date;
workflow: Workflow;
workflowExecute: WorkflowExecute;
}

View file

@ -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