From 182f8d4d6c3fbc9598d054d0c13aadbe1dba8b52 Mon Sep 17 00:00:00 2001 From: Nicolas Date: Wed, 12 Jun 2024 18:07:05 -0700 Subject: [PATCH] Update index.ts --- apps/api/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/api/src/index.ts b/apps/api/src/index.ts index 6b62f06b..494b4d5e 100644 --- a/apps/api/src/index.ts +++ b/apps/api/src/index.ts @@ -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) {