refactor(core): Make instance role clearer (no-changelog) (#10188)

This commit is contained in:
Iván Ovejero
2024-07-30 10:20:21 +02:00
committed by GitHub
parent 47c7904028
commit 99dc56c7a1
9 changed files with 24 additions and 29 deletions

View File

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