revert the inProduction check

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™ 2024-09-18 14:16:47 +02:00
parent 912c94e541
commit 37d6ca5cf4
No known key found for this signature in database
GPG key ID: 9300FF7CDEA1FBAA

View file

@ -27,7 +27,6 @@ import { isWorkflowIdValid } from '@/utils';
import { ConcurrencyControlService } from './concurrency/concurrency-control.service';
import config from './config';
import { inProduction } from './constants';
@Service()
export class ActiveExecutions {
@ -221,7 +220,7 @@ export class ActiveExecutions {
private getExecution(executionId: string): IExecutingWorkflowData {
const execution = this.activeExecutions[executionId];
if (!execution && !inProduction) {
if (!execution) {
throw new ApplicationError('No active execution found', { extra: { executionId } });
}
return execution;