mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
refactor(core): Make instance role clearer (no-changelog) (#10188)
This commit is contained in:
@@ -184,10 +184,7 @@ export class Start extends BaseCommand {
|
||||
await this.initOrchestration();
|
||||
this.logger.debug('Orchestration init complete');
|
||||
|
||||
if (
|
||||
!config.getEnv('license.autoRenewEnabled') &&
|
||||
config.getEnv('multiMainSetup.instanceType') === 'leader'
|
||||
) {
|
||||
if (!config.getEnv('license.autoRenewEnabled') && config.getEnv('instanceRole') === 'leader') {
|
||||
this.logger.warn(
|
||||
'Automatic license renewal is disabled. The license will not renew automatically, and access to licensed features may be lost!',
|
||||
);
|
||||
@@ -211,7 +208,7 @@ export class Start extends BaseCommand {
|
||||
|
||||
async initOrchestration() {
|
||||
if (config.getEnv('executions.mode') === 'regular') {
|
||||
config.set('multiMainSetup.instanceType', 'leader');
|
||||
config.set('instanceRole', 'leader');
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user