mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-08 15:05:46 +01:00
when settings are saved publish it to all nodes
add runJobs value to nconf, only true on nodes that should run jobs ie isPrimary and jobs are not disabled
This commit is contained in:
@@ -64,6 +64,8 @@ function loadConfig(configFile) {
|
||||
}
|
||||
});
|
||||
nconf.stores.env.readOnly = true;
|
||||
|
||||
nconf.set('runJobs', nconf.get('isPrimary') && !nconf.get('jobsDisabled'));
|
||||
}
|
||||
|
||||
function versionCheck() {
|
||||
|
||||
Reference in New Issue
Block a user