Skip to content

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

Update queue.ts

Nicolas28d7a637c21f
diff --git a/apps/api/src/controllers/admin/queue.ts b/apps/api/src/controllers/admin/queue.ts
index 729ea0041..8ce12942d 100644
--- a/apps/api/src/controllers/admin/queue.ts
+++ b/apps/api/src/controllers/admin/queue.ts
@@ -115,7 +115,8 @@ export async function autoscalerController(req: Request, res: Response) {
let targetMachineCount = activeMachines;
const baseScaleUp = 10;
- const baseScaleDown = 5;
+ // Slow scale down
+ const baseScaleDown = 2;
// Scale up logic
if (webScraperActive > 9000 || waitingAndPriorityCount > 2000) {