Skip to content
This repository was archived by the owner on Oct 9, 2023. It is now read-only.

Commit e23fb41

Browse files
authored
Merge pull request #23 from inket/patch-1
Default WORKER_COUNT to 1 when cpu count is 1
2 parents edf1d2f + 08036e9 commit e23fb41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/coordinator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import os from 'os';
44
import logger from './utils/logger';
55
import { raceTo } from './utils/lifecycle';
66

7-
const WORKER_COUNT = os.cpus().length - 1;
7+
const WORKER_COUNT = os.cpus().length - 1 || 1;
88

99
function close() {
1010
return Promise.all(Object.values(cluster.workers).map((worker) => {

0 commit comments

Comments
 (0)