feat: don't interrupt execution due to quota
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
import appConfig from '../config/app';
|
||||
import Step from '../models/step';
|
||||
import Flow from '../models/flow';
|
||||
import Execution from '../models/execution';
|
||||
@@ -23,10 +22,6 @@ export const processAction = async (options: ProcessActionOptions) => {
|
||||
.findById(executionId)
|
||||
.throwIfNotFound();
|
||||
|
||||
if (!execution.testRun) {
|
||||
await flow.throwIfQuotaExceeded();
|
||||
}
|
||||
|
||||
const step = await Step.query().findById(stepId).throwIfNotFound();
|
||||
|
||||
const $ = await globalVariable({
|
||||
|
@@ -1,4 +1,3 @@
|
||||
import appConfig from '../config/app';
|
||||
import Flow from '../models/flow';
|
||||
import globalVariable from '../helpers/global-variable';
|
||||
import EarlyExitError from '../errors/early-exit';
|
||||
@@ -13,11 +12,6 @@ type ProcessFlowOptions = {
|
||||
export const processFlow = async (options: ProcessFlowOptions) => {
|
||||
const { testRun, flowId } = options;
|
||||
const flow = await Flow.query().findById(flowId).throwIfNotFound();
|
||||
|
||||
if (!testRun) {
|
||||
await flow.throwIfQuotaExceeded();
|
||||
}
|
||||
|
||||
const triggerStep = await flow.getTriggerStep();
|
||||
const triggerCommand = await triggerStep.getTriggerCommand();
|
||||
|
||||
|
Reference in New Issue
Block a user