This commit is contained in:
William Mantly 2016-05-26 19:24:07 -04:00
parent b74a71efb4
commit 0e7ccf2637

View File

@ -110,8 +110,8 @@ var startWorker = function(worker, stopPercent){
if(usedMemPercent < stopPercent ){ if(usedMemPercent < stopPercent ){
var name = 'crunner-'+(Math.random()*100).toString().replace('.',''); var name = 'crunner-'+(Math.random()*100).toString().replace('.','');
return lxc.startEphemeral(name, 'crunner0', worker.ip, function(data){ return lxc.startEphemeral(name, 'crunner0', worker.ip, function(data){
if( !data.ip ) return setTimeout(startWorker(worker),0); if( !data.ip ) return setTimeout(startWorker(worker),0);
console.log('started container')
worker.availContainers.push({ worker.availContainers.push({
ip: data.ip, ip: data.ip,