mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 20:16:04 +01:00
primary worker support, and added notif pruning to primary worker jobs
This commit is contained in:
@@ -39,9 +39,9 @@ if(nconf.get('ssl')) {
|
||||
logger.init(app);
|
||||
auth.registerApp(app);
|
||||
emailer.registerApp(app);
|
||||
notifications.init();
|
||||
|
||||
if (cluster.isWorker && process.env.cluster_setup === 'true') {
|
||||
if (cluster.isWorker && process.env.handle_jobs === 'true') {
|
||||
notifications.init();
|
||||
user.startJobs();
|
||||
}
|
||||
|
||||
@@ -140,7 +140,8 @@ if(nconf.get('ssl')) {
|
||||
if (process.send) {
|
||||
process.send({
|
||||
action: 'listening',
|
||||
bind_address: bind_address
|
||||
bind_address: bind_address,
|
||||
primary: process.env.handle_jobs === 'true'
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user