asd #1

Closed
wmantly wants to merge 44 commits from refactor-workers into master
Showing only changes of commit a358a5212a - Show all commits

View File

@ -353,7 +353,8 @@ var WorkerCollection = (function(){
workers.checkForZombies();
// if there are workers being created, stop scale up and down check
if(workers.currentCreating + workers.length >= workers.settings.min){
var skipBalance = workers.currentCreating + workers.length >= workers.settings.min
if(skipBalance || workers.currentCreating){
return console.log(`Killing balance, workers are being created.`);
}