From e788b7d3d46ccaade7f3c4406142ac3cfbf4ca8b Mon Sep 17 00:00:00 2001 From: emizzle Date: Tue, 16 Oct 2018 12:46:54 +1100 Subject: [PATCH] Reduce async.queue concurrency to 3 Due to a process being spawned for every pipeline run, concurrency should remain around 3 to keep number of child processes from running away and allowing the CPU to stay on top. --- lib/core/engine.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/core/engine.js b/lib/core/engine.js index 53c3d0640..df22d891d 100644 --- a/lib/core/engine.js +++ b/lib/core/engine.js @@ -170,7 +170,7 @@ class Engine { const cargo = async.queue((task, callback) => { generateCode(task.modifiedAsset); self.events.once('outputDone', callback); - }, 10); + }, 3); const addToCargo = function (modifiedAsset) { cargo.push({modifiedAsset}); };