refactor(core): Port generic config (#11316)

This commit is contained in:
Iván Ovejero
2024-10-21 12:57:37 +02:00
committed by GitHub
parent f78a7dd3e1
commit 3c93ec88cd
7 changed files with 29 additions and 31 deletions

View File

@@ -55,7 +55,8 @@ export abstract class BaseCommand extends Command {
/**
* How long to wait for graceful shutdown before force killing the process.
*/
protected gracefulShutdownTimeoutInS = config.getEnv('generic.gracefulShutdownTimeout');
protected gracefulShutdownTimeoutInS =
Container.get(GlobalConfig).generic.gracefulShutdownTimeout;
/** Whether to init community packages (if enabled) */
protected needsCommunityPackages = false;