mirror of
https://github.com/wasp-lang/wasp.git
synced 2024-12-29 20:12:28 +03:00
Increased default max num of apps in progress from 5 to 7.
This commit is contained in:
parent
14d9e0d4c4
commit
9209ef4079
@ -3,7 +3,7 @@ import { log } from "./utils.js";
|
||||
|
||||
const maxProjectsInProgress = process.env.MAX_PROJECTS_IN_PROGRESS
|
||||
? parseInt(process.env.MAX_PROJECTS_IN_PROGRESS, 10)
|
||||
: 5;
|
||||
: 7;
|
||||
|
||||
export async function checkForPendingApps(
|
||||
_args: void,
|
||||
@ -24,7 +24,7 @@ export async function checkForPendingApps(
|
||||
where: { status: "in-progress" },
|
||||
});
|
||||
|
||||
// Generate X new apps until there are 5 in progress
|
||||
// Generate X new apps until there are `maxProjectsInProgress` in progress.
|
||||
const numAppsToGenerate = maxProjectsInProgress - inProgressProjects.length;
|
||||
const appsToGenerate = pendingProjects.slice(0, numAppsToGenerate);
|
||||
for (const app of appsToGenerate) {
|
||||
|
Loading…
Reference in New Issue
Block a user