From 6147468a08deae593c8a90ac181e471c26e9805b Mon Sep 17 00:00:00 2001 From: Tiago Costa Date: Tue, 6 Aug 2019 18:20:21 +0100 Subject: [PATCH] chore(NA): correct default for workerParallelJobs option --- src/worker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/worker.js b/src/worker.js index ef55916..1ab4934 100644 --- a/src/worker.js +++ b/src/worker.js @@ -17,7 +17,7 @@ readPipe.on('close', onTerminateRead); readPipe.on('error', onError); writePipe.on('error', onError); -const PARALLEL_JOBS = +process.argv[2]; +const PARALLEL_JOBS = +process.argv[2] || 20; let terminated = false; let nextQuestionId = 0;