From 3d6a75d392a2fa8a0fa4345417306f3beb5beb1b Mon Sep 17 00:00:00 2001 From: Jan Oberhauser Date: Wed, 29 Apr 2020 19:33:03 +0200 Subject: [PATCH] :zap: Fix issue with workflows running in main process --- packages/cli/src/WorkflowRunner.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/cli/src/WorkflowRunner.ts b/packages/cli/src/WorkflowRunner.ts index 739a655740..3a09606550 100644 --- a/packages/cli/src/WorkflowRunner.ts +++ b/packages/cli/src/WorkflowRunner.ts @@ -145,6 +145,10 @@ export class WorkflowRunner { this.activeExecutions.attachWorkflowExecution(executionId, workflowExecution); + workflowExecution.then((fullRunData) => { + this.activeExecutions.remove(executionId, fullRunData); + }); + return executionId; }