mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 17:46:45 +00:00
fix(core): Fix manually running a pinned trigger with offloading enabled (#12491)
This commit is contained in:
@@ -147,6 +147,12 @@ export class WorkflowExecutionService {
|
||||
triggerToStartFrom,
|
||||
};
|
||||
|
||||
const hasRunData = (node: INode) => runData !== undefined && !!runData[node.name];
|
||||
|
||||
if (pinnedTrigger && !hasRunData(pinnedTrigger)) {
|
||||
data.startNodes = [{ name: pinnedTrigger.name, sourceData: null }];
|
||||
}
|
||||
|
||||
/**
|
||||
* Historically, manual executions in scaling mode ran in the main process,
|
||||
* so some execution details were never persisted in the database.
|
||||
@@ -160,7 +166,7 @@ export class WorkflowExecutionService {
|
||||
) {
|
||||
data.executionData = {
|
||||
startData: {
|
||||
startNodes,
|
||||
startNodes: data.startNodes,
|
||||
destinationNode,
|
||||
},
|
||||
resultData: {
|
||||
@@ -176,12 +182,6 @@ export class WorkflowExecutionService {
|
||||
};
|
||||
}
|
||||
|
||||
const hasRunData = (node: INode) => runData !== undefined && !!runData[node.name];
|
||||
|
||||
if (pinnedTrigger && !hasRunData(pinnedTrigger)) {
|
||||
data.startNodes = [{ name: pinnedTrigger.name, sourceData: null }];
|
||||
}
|
||||
|
||||
const executionId = await this.workflowRunner.run(data);
|
||||
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user