primary worker support, and added notif pruning to primary worker jobs

This commit is contained in:
Julian Lam
2014-09-05 13:44:56 -04:00
parent 2efb816da3
commit 7255ce3dbe
3 changed files with 21 additions and 6 deletions

View File

@@ -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'
});
}
});