refactor(core): Introduce ManualExecutionService (#12156)

Co-authored-by: कारतोफ्फेलस्क्रिप्ट™ <aditya@netroy.in>
This commit is contained in:
Iván Ovejero
2024-12-11 16:29:57 +01:00
committed by GitHub
parent 9fc0ecb89b
commit 77e2c75ca6
4 changed files with 142 additions and 119 deletions

View File

@@ -7,9 +7,7 @@ import type {
NodeApiError,
WorkflowExecuteMode,
WorkflowOperationError,
Workflow,
NodeOperationError,
IWorkflowExecutionDataProcess,
} from 'n8n-workflow';
import { Container } from 'typedi';
import { v4 as uuid } from 'uuid';
@@ -223,18 +221,6 @@ export async function replaceInvalidCredentials(workflow: WorkflowEntity): Promi
return workflow;
}
export function getExecutionStartNode(data: IWorkflowExecutionDataProcess, workflow: Workflow) {
let startNode;
if (
data.startNodes?.length === 1 &&
Object.keys(data.pinData ?? {}).includes(data.startNodes[0].name)
) {
startNode = workflow.getNode(data.startNodes[0].name) ?? undefined;
}
return startNode;
}
export async function getVariables(): Promise<IDataObject> {
const variables = await Container.get(VariablesService).getAllCached();
return Object.freeze(