adding iffy

This commit is contained in:
Thomas Harvey 2017-10-10 01:54:11 -04:00
parent 87ee3a5fd1
commit 43caeb73f0

View File

@ -9,6 +9,11 @@ var doapi = require('../doapi')();
var workers = require('./worker_collection.js');
(function(){
console.log('========STARTING===========')
setInterval(workers.checkBalance, 15000);
workers.destroyByTag();
})()
var attemptRun = function(req, res, runner, count){
count = count || 0;
@ -62,11 +67,6 @@ var attemptRun = function(req, res, runner, count){
});
};
console.log('========STARTING===========')
// TODO: Make this a function
setInterval(workers.checkBalance, 15000);
workers.destroyByTag();
// Why is this a GET?
router.get('/stop/:name', function(req, res, next){
return lxc.stop(req.params.name, function(data){