From 3a7afbd481d235e307e4c1771b95f21af116f0ac Mon Sep 17 00:00:00 2001 From: Danny Martini Date: Tue, 17 Sep 2024 12:40:26 +0200 Subject: [PATCH] only throw in dev and test mode --- packages/cli/src/active-executions.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/cli/src/active-executions.ts b/packages/cli/src/active-executions.ts index 59d2cd5422..95286889f6 100644 --- a/packages/cli/src/active-executions.ts +++ b/packages/cli/src/active-executions.ts @@ -27,6 +27,7 @@ import { isWorkflowIdValid } from '@/utils'; import { ConcurrencyControlService } from './concurrency/concurrency-control.service'; import config from './config'; +import { inProduction } from './constants'; @Service() export class ActiveExecutions { @@ -217,7 +218,7 @@ export class ActiveExecutions { private getExecution(executionId: string): IExecutingWorkflowData { const execution = this.activeExecutions[executionId]; - if (!execution) { + if (!execution && !inProduction) { throw new ApplicationError('No active execution found', { extra: { executionId } }); } return execution;