From 0b2349c6c7ed5c51e234e418fad226875313e773 Mon Sep 17 00:00:00 2001 From: Quasic Date: Wed, 15 Nov 2017 21:50:41 -0500 Subject: [PATCH] disable concurrency in case of libuv/libuv#1459 also see termux/termux-packages#1798 --- lib/farm.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/farm.js b/lib/farm.js index bdc70e8..c3bdc26 100644 --- a/lib/farm.js +++ b/lib/farm.js @@ -2,7 +2,7 @@ const DEFAULT_OPTIONS = { maxCallsPerWorker : Infinity - , maxConcurrentWorkers : require('os').cpus().length + , maxConcurrentWorkers : (require('os').cpus() || { length: 1 }).length , maxConcurrentCallsPerWorker : 10 , maxConcurrentCalls : Infinity , maxCallTime : Infinity // exceed this and the whole worker is terminated