fix: Retain execution data between partial executions (new flow) (#11828)

This commit is contained in:
Danny Martini
2024-11-26 13:32:39 +01:00
committed by GitHub
parent 75e2b6fd9e
commit 3320436a6f
11 changed files with 159 additions and 14 deletions

View File

@@ -281,7 +281,7 @@ function hookFunctionsPush(): IWorkflowExecuteHooks {
},
],
workflowExecuteBefore: [
async function (this: WorkflowHooks): Promise<void> {
async function (this: WorkflowHooks, _workflow, data): Promise<void> {
const { pushRef, executionId } = this;
const { id: workflowId, name: workflowName } = this.workflowData;
logger.debug('Executing hook (hookFunctionsPush)', {
@@ -302,6 +302,9 @@ function hookFunctionsPush(): IWorkflowExecuteHooks {
retryOf: this.retryOf,
workflowId,
workflowName,
flattedRunData: data?.resultData.runData
? stringify(data.resultData.runData)
: stringify({}),
},
pushRef,
);