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
Nicolasb80277d4de1e
diff --git a/apps/api/src/controllers/admin/queue.ts b/apps/api/src/controllers/admin/queue.tsindex 2923ebba4..6a46cfec9 100644--- a/apps/api/src/controllers/admin/queue.ts+++ b/apps/api/src/controllers/admin/queue.ts@@ -113,7 +113,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;+ const activeMachines = machines.filter(machine => (machine.state === 'started' || machine.state === "starting" || machine.state === "replacing") && machine.config.env["FLY_PROCESS_GROUP"] === "worker").length;let targetMachineCount = activeMachines;@@ -143,9 +143,9 @@ export async function autoscalerController(req: Request, res: Response) {Logger.info(`π Scaling from ${activeMachines} to ${targetMachineCount} - ${webScraperActive} active, ${webScraperWaiting} waiting`);if(targetMachineCount > activeMachines) {- sendSlackWebhook("π Scaling up to " + targetMachineCount + " machines", false, process.env.SLACK_AUTOSCALER ?? "");+ sendSlackWebhook(`π Scaling from ${activeMachines} to ${targetMachineCount} - ${webScraperActive} active, ${webScraperWaiting} waiting`, false, process.env.SLACK_AUTOSCALER ?? "");} else {- sendSlackWebhook("π Scaling down to " + targetMachineCount + " machines", false, process.env.SLACK_AUTOSCALER ?? "");+ sendSlackWebhook(`π Scaling from ${activeMachines} to ${targetMachineCount} - ${webScraperActive} active, ${webScraperWaiting} waiting`, false, process.env.SLACK_AUTOSCALER ?? "");}return res.status(200).json({mode: "scale-descale",