fix(core): Don't create additional nodeExecuteBefore message (#14958)

This commit is contained in:
Danny Martini
2025-04-29 15:07:30 +02:00
committed by GitHub
parent cc723a12e8
commit a33e3a807a
3 changed files with 168 additions and 9 deletions

View File

@@ -1433,20 +1433,12 @@ export class WorkflowExecute {
}
executionData.data = newTaskDataConnections;
Logger.debug(`Start processing node "${executionNode.name}"`, {
node: executionNode.name,
workflowId: workflow.id,
});
await hooks.runHook('nodeExecuteBefore', [executionNode.name, taskStartedData]);
// Get the index of the current run
runIndex = 0;
if (this.runExecutionData.resultData.runData.hasOwnProperty(executionNode.name)) {
runIndex = this.runExecutionData.resultData.runData[executionNode.name].length;
}
currentExecutionTry = `${executionNode.name}:${runIndex}`;
if (currentExecutionTry === lastExecutionTry) {
throw new ApplicationError(
'Stopped execution because it seems to be in an endless loop',
@@ -1469,6 +1461,11 @@ export class WorkflowExecute {
continue executionLoop;
}
Logger.debug(`Start executing node "${executionNode.name}"`, {
node: executionNode.name,
workflowId: workflow.id,
});
await hooks.runHook('nodeExecuteBefore', [executionNode.name, taskStartedData]);
let maxTries = 1;
if (executionData.node.retryOnFail === true) {
// TODO: Remove the hardcoded default-values here and also in NodeSettings.vue