refactor(core): Tear down OrchestrationService (#15100)

This commit is contained in:
Iván Ovejero
2025-05-09 09:45:27 +02:00
committed by GitHub
parent d57a180552
commit 3079059e96
15 changed files with 42 additions and 142 deletions

View File

@@ -58,6 +58,7 @@ export class MultiMainSetup extends TypedEmitter<MultiMainEvents> {
}, this.globalConfig.multiMainSetup.interval * Time.seconds.toMilliseconds);
}
// @TODO: Use `@OnShutdown()` decorator
async shutdown() {
clearInterval(this.leaderCheckInterval);
@@ -117,7 +118,7 @@ export class MultiMainSetup extends TypedEmitter<MultiMainEvents> {
);
if (keySetSuccessfully) {
this.logger.debug(`[Instance ID ${hostId}] Leader is now this instance`);
this.logger.info(`[Instance ID ${hostId}] Leader is now this instance`);
this.instanceSettings.markAsLeader();