mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-19 02:51:14 +00:00
fix(core): Increment executionIndex in partial executions (no-changelog) (#14946)
Co-authored-by: कारतोफ्फेलस्क्रिप्ट™ <aditya@netroy.in>
This commit is contained in:
@@ -70,6 +70,7 @@ import {
|
||||
filterDisabledNodes,
|
||||
rewireGraph,
|
||||
isTool,
|
||||
getNextExecutionIndex,
|
||||
} from './partial-execution-utils';
|
||||
import { RoutingNode } from './routing-node';
|
||||
import { TriggersAndPollers } from './triggers-and-pollers';
|
||||
@@ -194,6 +195,9 @@ export class WorkflowExecute {
|
||||
let incomingNodeConnections: INodeConnections | undefined;
|
||||
let connection: IConnection;
|
||||
|
||||
// Increment currentExecutionIndex based on previous run
|
||||
this.additionalData.currentNodeExecutionIndex = getNextExecutionIndex(runData);
|
||||
|
||||
this.status = 'running';
|
||||
|
||||
const runIndex = 0;
|
||||
@@ -428,6 +432,10 @@ export class WorkflowExecute {
|
||||
recreateNodeExecutionStack(graph, startNodes, runData, pinData ?? {});
|
||||
|
||||
// 8. Execute
|
||||
|
||||
// Increment currentExecutionIndex based on previous run
|
||||
this.additionalData.currentNodeExecutionIndex = getNextExecutionIndex(runData);
|
||||
|
||||
this.status = 'running';
|
||||
this.runExecutionData = {
|
||||
startData: {
|
||||
|
||||
Reference in New Issue
Block a user