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.
This commit is contained in:
parent
6eae7a9a31
commit
e788b7d3d4
|
@ -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});
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue