mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 18:41:14 +00:00
👕 Fix lint issue
This commit is contained in:
@@ -413,7 +413,7 @@ export interface IWorkflowExecutionDataProcessWithExecution extends IWorkflowExe
|
|||||||
}
|
}
|
||||||
|
|
||||||
export interface IWorkflowExecuteProcess {
|
export interface IWorkflowExecuteProcess {
|
||||||
startedAt: Date,
|
startedAt: Date;
|
||||||
workflow: Workflow;
|
workflow: Workflow;
|
||||||
workflowExecute: WorkflowExecute;
|
workflowExecute: WorkflowExecute;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -434,7 +434,7 @@ export class WorkflowRunner {
|
|||||||
const processTimeoutFunction = (timeout: number) => {
|
const processTimeoutFunction = (timeout: number) => {
|
||||||
this.activeExecutions.stopExecution(executionId, 'timeout');
|
this.activeExecutions.stopExecution(executionId, 'timeout');
|
||||||
executionTimeout = setTimeout(() => subprocess.kill(), Math.max(timeout * 0.2, 5000)); // minimum 5 seconds
|
executionTimeout = setTimeout(() => subprocess.kill(), Math.max(timeout * 0.2, 5000)); // minimum 5 seconds
|
||||||
}
|
};
|
||||||
|
|
||||||
if (workflowTimeout > 0) {
|
if (workflowTimeout > 0) {
|
||||||
workflowTimeout = Math.min(workflowTimeout, config.get('executions.maxTimeout') as number) * 1000; // as seconds
|
workflowTimeout = Math.min(workflowTimeout, config.get('executions.maxTimeout') as number) * 1000; // as seconds
|
||||||
|
|||||||
Reference in New Issue
Block a user