diff --git a/src/coordinator.js b/src/coordinator.js index 0ccda65..bd2a51c 100644 --- a/src/coordinator.js +++ b/src/coordinator.js @@ -4,7 +4,7 @@ import os from 'os'; import logger from './utils/logger'; import { raceTo } from './utils/lifecycle'; -const WORKER_COUNT = os.cpus().length - 1; +const WORKER_COUNT = os.cpus().length - 1 || 1; function close() { return Promise.all(Object.values(cluster.workers).map((worker) => {