Fixes in selection of subscribers

This commit is contained in:
Tomas Bures 2018-09-11 10:07:00 +02:00
parent 01d1a903a2
commit 89eabea0de
3 changed files with 24 additions and 20 deletions

View file

@ -27,7 +27,7 @@ const workerBatchSize = 100;
const messageQueue = new Map(); // campaignId -> [{listId, email}]
const messageQueueCont = new Map(); // campaignId -> next batch callback
const workerSchedulerCont = null;
let workerSchedulerCont = null;
function messagesProcessed(workerId) {
@ -202,7 +202,7 @@ async function spawnWorker(workerId) {
return resolve();
} else if (msg.type === 'messages-processed') {
messageProcessed(workerId);
messagesProcessed(workerId);
}
}