Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥
TypeScript aiai-agentsai-crawlerai-scrapingai-searchcrawlerdata-extractionhtml-to-markdownllmmarkdownscraperscrapingweb-crawlerweb-dataweb-data-extractionweb-scraperweb-scrapingweb-searchwebscraping
Update queue.ts
Nicolas8e78511ed49a
diff --git a/apps/api/src/controllers/admin/queue.ts b/apps/api/src/controllers/admin/queue.tsindex 8ce12942d..43bf2e98f 100644--- a/apps/api/src/controllers/admin/queue.ts+++ b/apps/api/src/controllers/admin/queue.ts@@ -110,7 +110,9 @@ export async function autoscalerController(req: Request, res: Response) {})const machines = await request.json();- const activeMachines = machines.filter(machine => machine.state === 'started' || machine.state === "starting").length;++ // Only worker machines+ const activeMachines = machines.filter(machine => (machine.state === 'started' || machine.state === "starting") && machine.config.env["FLY_PROCESS_GROUP"] === "worker").length;let targetMachineCount = activeMachines;