Add executionId workflow.postExecute external hook (#2569)

Co-authored-by: Jan Oberhauser <janober@users.noreply.github.com>
This commit is contained in:
Vahid Sebto
2021-12-25 16:12:17 +03:30
committed by GitHub
parent 522de66583
commit 8f9dbb7163
3 changed files with 3 additions and 3 deletions

View File

@@ -186,7 +186,7 @@ export class WorkflowRunner {
if (externalHooks.exists('workflow.postExecute')) {
postExecutePromise
.then(async (executionData) => {
await externalHooks.run('workflow.postExecute', [executionData, data.workflowData]);
await externalHooks.run('workflow.postExecute', [executionData, data.workflowData, executionId]);
})
.catch((error) => {
console.error('There was a problem running hook "workflow.postExecute"', error);