cleaned up logging
This commit is contained in:
parent
5533187636
commit
e74f24b2b9
@ -45,7 +45,6 @@ var workers = (function(){
|
|||||||
image: workers.settings.image,
|
image: workers.settings.image,
|
||||||
size: workers.settings.size,
|
size: workers.settings.size,
|
||||||
onCreate: function(data){
|
onCreate: function(data){
|
||||||
console.log(data)
|
|
||||||
doapi.dropletSetTag('clwV'+workers.settings.version, data.droplet.id);
|
doapi.dropletSetTag('clwV'+workers.settings.version, data.droplet.id);
|
||||||
},
|
},
|
||||||
onActive: function(worker, args){
|
onActive: function(worker, args){
|
||||||
@ -62,7 +61,7 @@ var workers = (function(){
|
|||||||
args.onStart = function(){};
|
args.onStart = function(){};
|
||||||
},
|
},
|
||||||
onDone: function(args){
|
onDone: function(args){
|
||||||
console.log("done with workers");
|
console.log("done with runners on", worker.name);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
workers.currentCreating--;
|
workers.currentCreating--;
|
||||||
@ -353,10 +352,7 @@ var run = function(req, res, runner, count){
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
setTimeout(function(){
|
setInterval(workers.checkBalance, 15000);
|
||||||
// console.log('Starting balance checking in 30 seconds')
|
|
||||||
setInterval(workers.checkBalance, 15000);
|
|
||||||
}, 600000);
|
|
||||||
|
|
||||||
workers.destroyByTag();
|
workers.destroyByTag();
|
||||||
workers.checkBalance();
|
workers.checkBalance();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user