mirror of
https://github.com/mendableai/firecrawl.git
synced 2024-11-16 03:32:22 +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…
Reference in New Issue
Block a user