This commit is contained in:
William Mantly 2016-05-30 23:00:09 -04:00
parent 4d78659654
commit 67b717ace1

View File

@ -183,8 +183,8 @@ var lxcTimeout = function(runner, time){
};
var run = function(req, res, runner, count){
count = count || 0;
console.log('run start', count);
var httpOptions = {
url: 'http://' + runner.worker.ip,
headers: {
@ -195,6 +195,7 @@ var run = function(req, res, runner, count){
})
};
console.log('run', runner);
if(!runner || count > 3){
res.status(503);
return res.json({error: 'No runners, try again soon.'});