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:
emizzle 2018-10-16 12:46:54 +11:00 committed by Pascal Precht
parent 6eae7a9a31
commit e788b7d3d4
No known key found for this signature in database
GPG Key ID: 0EE28D8D6FD85D7D
1 changed files with 1 additions and 1 deletions

View File

@ -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});
};