feat: skip processing tasks over task quota

This commit is contained in:
Ali BARIN
2023-03-08 20:24:59 +00:00
parent 92d1ed65ff
commit 54e68f6252
5 changed files with 40 additions and 6 deletions

View File

@@ -14,6 +14,11 @@ export default async (request: IRequest, response: Response) => {
.throwIfNotFound();
const testRun = !flow.active;
if (!testRun) {
await flow.throwIfQuotaExceeded();
}
const triggerStep = await flow.getTriggerStep();
const triggerCommand = await triggerStep.getTriggerCommand();
const app = await triggerStep.getApp();