mirror of
https://git.mirrors.martin98.com/https://github.com/mendableai/firecrawl
synced 2025-08-05 16:30:41 +08:00
Update queue.ts
This commit is contained in:
parent
28d7a637c2
commit
8e78511ed4
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user