asd #1

Closed
wmantly wants to merge 44 commits from refactor-workers into master
Showing only changes of commit 43caeb73f0 - Show all commits

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){