mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
only throw in dev and test mode
This commit is contained in:
parent
2b06cb91c7
commit
3a7afbd481
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue