adding iffy
This commit is contained in:
parent
87ee3a5fd1
commit
43caeb73f0
@ -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){
|
||||
|
Loading…
x
Reference in New Issue
Block a user