This commit is contained in:
William Mantly 2016-05-30 15:43:49 -04:00
parent 232e9b72bb
commit 651f3835e2

View File

@ -84,6 +84,7 @@ var workers = (function(){
workers.destroyOld = function(){ workers.destroyOld = function(){
doapi.dropletsByTag('clworker', function(data){ doapi.dropletsByTag('clworker', function(data){
data = JSON.parse(data); data = JSON.parse(data);
console.log('dropletsByTag data:',data);
data['droplets'].forEach(function(worker){ data['droplets'].forEach(function(worker){
console.log('found old droplet, killing it'); console.log('found old droplet, killing it');
doapi.dropletDestroy(worker.id, function(){}); doapi.dropletDestroy(worker.id, function(){});