fix(core): Fix canceled execution status (#6142)

This commit is contained in:
Michael Auerswald
2023-05-02 10:37:35 +02:00
committed by GitHub
parent 06fa6f1fb3
commit 839a56a682
4 changed files with 20 additions and 3 deletions

View File

@@ -472,6 +472,8 @@ process.on('message', async (message: IProcessMessage) => {
? new WorkflowOperationError('Workflow execution timed out!')
: new WorkflowOperationError('Workflow-Execution has been canceled!');
runData.status = message.type === 'timeout' ? 'failed' : 'canceled';
// If there is any data send it to parent process, if execution timedout add the error
await workflowRunner.workflowExecute.processSuccessExecution(
workflowRunner.startedAt,