fix(core): Fix onWorkflowPostExecute not being called (#5224)

fix onWorkflowPostExecute
This commit is contained in:
Michael Auerswald 2023-01-23 11:53:00 +01:00 committed by GitHub
parent 0b123ce05e
commit 4f89fb4d4d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1013,7 +1013,12 @@ async function executeWorkflow(
await externalHooks.run('workflow.postExecute', [data, workflowData, executionId]);
void InternalHooksManager.getInstance().onWorkflowBeforeExecute(executionId || '', runData);
void InternalHooksManager.getInstance().onWorkflowPostExecute(
executionId,
workflowData,
data,
additionalData.userId,
);
if (data.finished === true) {
// Workflow did finish successfully