Update index.ts
This commit is contained in:
parent
11b6d5afa5
commit
182f8d4d6c
@ -13,7 +13,7 @@ const { createBullBoard } = require("@bull-board/api");
|
|||||||
const { BullAdapter } = require("@bull-board/api/bullAdapter");
|
const { BullAdapter } = require("@bull-board/api/bullAdapter");
|
||||||
const { ExpressAdapter } = require("@bull-board/express");
|
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`);
|
console.log(`Number of CPUs: ${numCPUs} available`);
|
||||||
|
|
||||||
if (cluster.isMaster) {
|
if (cluster.isMaster) {
|
||||||
|
Loading…
Reference in New Issue
Block a user