asd #1

Closed
wmantly wants to merge 44 commits from refactor-workers into master
2 changed files with 8 additions and 5 deletions
Showing only changes of commit 178838366c - Show all commits

View File

@ -9,11 +9,9 @@ var doapi = require('../doapi')();
var workers = require('./worker_collection.js');
(function(){
console.log('========STARTING===========')
setInterval(workers.checkBalance, 15000);
workers.destroyByTag();
})()
console.log('========STARTING===========');
workers.start();
var attemptRun = function(req, res, runner, count){
count = count || 0;

View File

@ -495,6 +495,11 @@ var WorkerCollection = (function(){
};
workers.start = function(interval){
setInterval(workers.checkBalance, interval || 15000);
workers.destroyByTag();
};
workers.settingsSave = function(){
// save the live settings file to disk