mirror of
https://github.com/jwinterm/nodejs-pool.git
synced 2026-10-23 06:18:34 +02:00
Cherrypicking a couple of commits, merge-conflicts later, but I'll deal with it then.
This commit is contained in:
@@ -4,6 +4,8 @@ const async = require('async');
|
||||
|
||||
function Database() {
|
||||
|
||||
let thread_id='';
|
||||
|
||||
this.sendQueue = async.queue(function (task, callback) {
|
||||
async.doUntil(
|
||||
function (intCallback) {
|
||||
@@ -52,6 +54,13 @@ function Database() {
|
||||
process.send({type: 'sendRemote', body: wsData.toString('hex')});
|
||||
};
|
||||
|
||||
setInterval(function(queue_obj){
|
||||
if (thread_id === '(Master) '){
|
||||
console.log(global.database.thread_id + "Queue debug state: " + queue_obj.length() + " items in the queue " + queue_obj.running() + " items being processed");
|
||||
}
|
||||
}, 5000, this.sendQueue);
|
||||
|
||||
|
||||
this.initEnv = function(){
|
||||
this.data = null;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user