This commit is contained in:
William Mantly 2016-05-30 23:06:45 -04:00
parent 67b717ace1
commit aee63de478

View File

@ -184,7 +184,7 @@ var lxcTimeout = function(runner, time){
var run = function(req, res, runner, count){
count = count || 0;
console.log('run start', count);
console.log('run start', count, runner);
var httpOptions = {
url: 'http://' + runner.worker.ip,
headers: {
@ -195,7 +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.'});