Skip to content

Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥

Update queue.ts

Nicolasb9e06e27f400
diff --git a/apps/api/src/controllers/admin/queue.ts b/apps/api/src/controllers/admin/queue.ts
index 43bf2e98f..f3244d2c3 100644
--- a/apps/api/src/controllers/admin/queue.ts
+++ b/apps/api/src/controllers/admin/queue.ts
@@ -88,7 +88,7 @@ export async function queuesController(req: Request, res: Response) {
export async function autoscalerController(req: Request, res: Response) {
try {
- const maxNumberOfMachines = 100;
+ const maxNumberOfMachines = 80;
const minNumberOfMachines = 20;
const scrapeQueue = getScrapeQueue();
@@ -110,7 +110,7 @@ export async function autoscalerController(req: Request, res: Response) {
}
)
const machines = await request.json();
-
+
// Only worker machines
const activeMachines = machines.filter(machine => (machine.state === 'started' || machine.state === "starting") && machine.config.env["FLY_PROCESS_GROUP"] === "worker").length;