mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
fix(core): Fix manually running a pinned trigger with offloading enabled (#12491)
This commit is contained in:
parent
9953477450
commit
be2dcffc94
|
@ -147,6 +147,12 @@ export class WorkflowExecutionService {
|
||||||
triggerToStartFrom,
|
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,
|
* Historically, manual executions in scaling mode ran in the main process,
|
||||||
* so some execution details were never persisted in the database.
|
* so some execution details were never persisted in the database.
|
||||||
|
@ -160,7 +166,7 @@ export class WorkflowExecutionService {
|
||||||
) {
|
) {
|
||||||
data.executionData = {
|
data.executionData = {
|
||||||
startData: {
|
startData: {
|
||||||
startNodes,
|
startNodes: data.startNodes,
|
||||||
destinationNode,
|
destinationNode,
|
||||||
},
|
},
|
||||||
resultData: {
|
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);
|
const executionId = await this.workflowRunner.run(data);
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
Loading…
Reference in a new issue