Merge pull request #16888 from overleaf/jpa-faster-filestore-stop-in-dev

[misc] use a common environment variable for the graceful shutdown delay

GitOrigin-RevId: 010e83c62eff7bedac3b10e36e9b4f38d6459a1c
This commit is contained in:
Jakob Ackermann
2024-02-06 09:03:19 +00:00
committed by Copybot
parent 621301618f
commit fd717dff01
4 changed files with 6 additions and 4 deletions
@@ -113,7 +113,8 @@ const settings = {
dsn: process.env.SENTRY_DSN,
},
delayShutdownMs: parseInt(process.env.DELAY_SHUTDOWN_MS || '30000', 10),
gracefulShutdownDelayInMs:
parseInt(process.env.GRACEFUL_SHUTDOWN_DELAY_SECONDS ?? '30', 10) * 1000,
}
// Filestore health check