0

Update index.ts

This commit is contained in:
Nicolas 2024-06-12 18:07:05 -07:00
parent 11b6d5afa5
commit 182f8d4d6c

View File

@ -13,7 +13,7 @@ const { createBullBoard } = require("@bull-board/api");
const { BullAdapter } = require("@bull-board/api/bullAdapter");
const { ExpressAdapter } = require("@bull-board/express");
const numCPUs = os.cpus().length;
const numCPUs = process.env.ENV === "local" ? 2 : os.cpus().length;
console.log(`Number of CPUs: ${numCPUs} available`);
if (cluster.isMaster) {