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;