mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-21 15:03:12 +01:00
primary worker support, and added notif pruning to primary worker jobs
This commit is contained in:
@@ -56,6 +56,6 @@ module.exports = function(app, middleware, controllers) {
|
||||
});
|
||||
|
||||
router.get('/test', function(req, res) {
|
||||
res.redirect(404);
|
||||
process.exit(0);
|
||||
});
|
||||
};
|
||||
|
||||
@@ -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