load stuff
This commit is contained in:
parent
c42cf797e7
commit
c742c8fb7a
@ -162,11 +162,7 @@ router.post('/run/:ip?', function doRun(req, res, next){
|
|||||||
if(found){
|
if(found){
|
||||||
return runner(req, res, ip)
|
return runner(req, res, ip)
|
||||||
}else{
|
}else{
|
||||||
var name = 'crunner-'+(Math.random()*100).toString().replace('.','');
|
return runner(req, res, availContainers.pop());
|
||||||
return lxc.startEphemeral(name, 'crunner', function(data){
|
|
||||||
ip2name[data.ip] = name;
|
|
||||||
return runner(req, res, data.ip);
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user