diff --git a/content/src/Environment.ts b/content/src/Environment.ts index 86ba524d1..d7aa24148 100644 --- a/content/src/Environment.ts +++ b/content/src/Environment.ts @@ -371,7 +371,11 @@ export class EnvironmentBuilder { EnvironmentConfig.GARBAGE_COLLECTION, () => process.env.GARBAGE_COLLECTION === 'true' ) - this.registerConfigIfNotAlreadySet(env, EnvironmentConfig.GARBAGE_COLLECTION_INTERVAL, () => ms('6h')) + this.registerConfigIfNotAlreadySet( + env, + EnvironmentConfig.GARBAGE_COLLECTION_INTERVAL, + () => process.env.GARBAGE_COLLECTION_INTERVAL ?? ms('6h') + ) this.registerConfigIfNotAlreadySet(env, EnvironmentConfig.PG_IDLE_TIMEOUT, () => process.env.PG_IDLE_TIMEOUT ? ms(process.env.PG_IDLE_TIMEOUT) : ms('30s')