run expiration tasks in a worker instead of the main process

This commit is contained in:
ansuz
2020-03-27 14:38:58 -04:00
parent b0179eaad9
commit d8a88cb4ca
3 changed files with 43 additions and 18 deletions

View File

@@ -290,6 +290,12 @@ Workers.initializeIndexWorkers = function (Env, config, _cb) {
}, cb);
};
Env.runTasks = function (cb) {
sendCommand({
command: 'RUN_TASKS',
}, cb);
};
//console.log("index workers ready");
cb(void 0);
});