run expiration tasks in a worker instead of the main process
This commit is contained in:
@@ -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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user