mirror of
https://github.com/n8n-io/n8n.git
synced 2025-02-21 02:56:40 -08:00
fix(core): Fix disabled parent output in partial execution (#3946)
🐛 Skip disabled parent in partial execution
This commit is contained in:
parent
936cb11789
commit
c8743ff6ca
|
@ -192,6 +192,9 @@ export class WorkflowExecute {
|
|||
for (const connections of incomingNodeConnections.main) {
|
||||
for (let inputIndex = 0; inputIndex < connections.length; inputIndex++) {
|
||||
connection = connections[inputIndex];
|
||||
|
||||
if (workflow.getNode(connection.node)?.disabled) continue;
|
||||
|
||||
incomingData.push(
|
||||
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
||||
runData[connection.node][runIndex].data![connection.type][connection.index]!,
|
||||
|
@ -257,7 +260,10 @@ export class WorkflowExecute {
|
|||
// Only run the parent nodes and no others
|
||||
let runNodeFilter: string[] | undefined;
|
||||
// eslint-disable-next-line prefer-const
|
||||
runNodeFilter = workflow.getParentNodes(destinationNode);
|
||||
runNodeFilter = workflow
|
||||
.getParentNodes(destinationNode)
|
||||
.filter((parentNodeName) => !workflow.getNode(parentNodeName)?.disabled);
|
||||
|
||||
runNodeFilter.push(destinationNode);
|
||||
|
||||
this.runExecutionData = {
|
||||
|
|
|
@ -151,7 +151,9 @@ export const workflowRun = mixins(
|
|||
// node for each of the branches
|
||||
const parentNodes = workflow.getParentNodes(directParentNode, 'main');
|
||||
|
||||
// Add also the direct parent to be checked
|
||||
// Add also the enabled direct parent to be checked
|
||||
if (workflow.nodes[directParentNode].disabled) continue;
|
||||
|
||||
parentNodes.push(directParentNode);
|
||||
|
||||
for (const parentNode of parentNodes) {
|
||||
|
|
Loading…
Reference in a new issue