Skip to content

Commit

Permalink
feat(config): DEBUG__DISABLE_INACTIVE_MODULE_REMOVAL env var (#178)
Browse files Browse the repository at this point in the history
  • Loading branch information
kon14 committed May 31, 2022
1 parent 096871a commit 8ac2d96
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions packages/config/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,13 @@ export default class ConfigManager implements IConfigManager {
},
);
this.highAvailability();
const self = this;
setInterval(() => {
self.monitorModuleHealth();
}, 5000);
const disableModuleRemoval = process.env.DEBUG__DISABLE_INACTIVE_MODULE_REMOVAL === 'true';
if (!disableModuleRemoval) {
const self = this;
setInterval(() => {
self.monitorModuleHealth();
}, 5000);
}
}

async highAvailability() {
Expand Down

0 comments on commit 8ac2d96

Please sign in to comment.