From c9273bcd3862217b4918ac8abb37fae9c2e64622 Mon Sep 17 00:00:00 2001 From: Jan Oberhauser Date: Thu, 16 Jun 2022 11:19:28 -0700 Subject: [PATCH] fix(core): Fix issue with restarting waiting executions (#3531) --- packages/core/src/WorkflowExecute.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/core/src/WorkflowExecute.ts b/packages/core/src/WorkflowExecute.ts index 3bd64566e0..3f67e11334 100644 --- a/packages/core/src/WorkflowExecute.ts +++ b/packages/core/src/WorkflowExecute.ts @@ -1013,10 +1013,11 @@ export class WorkflowExecute { if (!this.runExecutionData.resultData.runData.hasOwnProperty(executionNode.name)) { this.runExecutionData.resultData.runData[executionNode.name] = []; } + taskData = { startTime, executionTime: new Date().getTime() - startTime, - source: executionData.source === null ? [] : executionData.source.main, + source: !executionData.source ? [] : executionData.source.main, }; if (executionError !== undefined) {