feat(core): Fix partial workflow execution with specific trigger data (#13505)

Co-authored-by: Danny Martini <danny@n8n.io>
This commit is contained in:
oleg
2025-02-27 12:11:32 +01:00
committed by GitHub
parent ac3b388d18
commit 9029dace5c
2 changed files with 384 additions and 2 deletions

View File

@@ -48,7 +48,7 @@ export class ManualExecutionService {
executionId: string,
pinData?: IPinData,
): PCancelable<IRun> {
if (data.triggerToStartFrom?.data && data.startNodes && !data.destinationNode) {
if (data.triggerToStartFrom?.data && data.startNodes) {
this.logger.debug(
`Execution ID ${executionId} had triggerToStartFrom. Starting from that trigger.`,
{ executionId },
@@ -78,6 +78,10 @@ export class ManualExecutionService {
},
};
if (data.destinationNode) {
executionData.startData = { destinationNode: data.destinationNode };
}
const workflowExecute = new WorkflowExecute(
additionalData,
data.executionMode,
@@ -105,6 +109,7 @@ export class ManualExecutionService {
// Can execute without webhook so go on
const workflowExecute = new WorkflowExecute(additionalData, data.executionMode);
return workflowExecute.run(workflow, startNode, data.destinationNode, data.pinData);
} else {
// Partial Execution