Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

feat: increase shutdown grace period web container (#2818)

Max Deichmann923ea17feffd
diff --git a/web/src/utils/shutdown.ts b/web/src/utils/shutdown.ts
index 50e02099e4..2ac1e496e9 100644
--- a/web/src/utils/shutdown.ts
+++ b/web/src/utils/shutdown.ts
@@ -4,7 +4,7 @@
// NEVER call process.exit() in this process. Kubernetes should kill the container: https://kostasbariotis.com/why-you-should-not-use-process-exit/
// We wait for 20 seconds to allow the app to finish processing requests. There is no native way to do this in Next.js.
-const TIMEOUT = 60_000;
+const TIMEOUT = 200_000;
declare global {
// eslint-disable-next-line no-var