refactor(core): Extract disabled node filtering out of findSubgraph (#11941)

This commit is contained in:
Danny Martini
2024-11-29 12:58:53 +01:00
committed by GitHub
parent c5d6a74623
commit 40a41dd192
8 changed files with 224 additions and 111 deletions

View File

@@ -59,6 +59,7 @@ import {
cleanRunData,
recreateNodeExecutionStack,
handleCycles,
filterDisabledNodes,
} from './PartialExecutionUtils';
export class WorkflowExecute {
@@ -347,7 +348,7 @@ export class WorkflowExecute {
// 2. Find the Subgraph
const graph = DirectedGraph.fromWorkflow(workflow);
const subgraph = findSubgraph({ graph, destination, trigger });
const subgraph = findSubgraph({ graph: filterDisabledNodes(graph), destination, trigger });
const filteredNodes = subgraph.getNodes();
// 3. Find the Start Nodes