mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-21 11:49:59 +00:00
fix(core): Clean run data correctly for the new partial execution flow (no-changelog) (#10951)
This commit is contained in:
@@ -58,6 +58,7 @@ import {
|
||||
findSubgraph,
|
||||
findTriggerForPartialExecution,
|
||||
} from './PartialExecutionUtils';
|
||||
import { cleanRunData } from './PartialExecutionUtils/cleanRunData';
|
||||
|
||||
export class WorkflowExecute {
|
||||
private status: ExecutionStatus = 'new';
|
||||
@@ -347,7 +348,8 @@ export class WorkflowExecute {
|
||||
}
|
||||
|
||||
// 2. Find the Subgraph
|
||||
const subgraph = findSubgraph(DirectedGraph.fromWorkflow(workflow), destinationNode, trigger);
|
||||
const graph = DirectedGraph.fromWorkflow(workflow);
|
||||
const subgraph = findSubgraph(graph, destinationNode, trigger);
|
||||
const filteredNodes = subgraph.getNodes();
|
||||
|
||||
// 3. Find the Start Nodes
|
||||
@@ -362,7 +364,7 @@ export class WorkflowExecute {
|
||||
}
|
||||
|
||||
// 6. Clean Run Data
|
||||
// TODO:
|
||||
const newRunData: IRunData = cleanRunData(runData, graph, startNodes);
|
||||
|
||||
// 7. Recreate Execution Stack
|
||||
const { nodeExecutionStack, waitingExecution, waitingExecutionSource } =
|
||||
@@ -376,7 +378,7 @@ export class WorkflowExecute {
|
||||
runNodeFilter: Array.from(filteredNodes.values()).map((node) => node.name),
|
||||
},
|
||||
resultData: {
|
||||
runData,
|
||||
runData: newRunData,
|
||||
pinData,
|
||||
},
|
||||
executionData: {
|
||||
|
||||
Reference in New Issue
Block a user