Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

fix(notebooks): halve the kernel sandbox lifetime to 1 hour (#81306)

Sinan Kucukkoselerbb86bab23d84
diff --git a/products/notebooks/backend/kernel_runtime.py b/products/notebooks/backend/kernel_runtime.py
index 802ed658d902..c280de4d91da 100644
--- a/products/notebooks/backend/kernel_runtime.py
+++ b/products/notebooks/backend/kernel_runtime.py
@@ -38,7 +38,7 @@ logger = structlog.get_logger(__name__)
# `kernel_idle_timeout_seconds`. A kernel serves one interactive session, so nobody waits on it
# once the tab closes and this TTL is what reclaims it. The task-agent default
# (`SANDBOX_TTL_SECONDS`) is longer because it has to outlast an unattended agent run.
-NOTEBOOK_KERNEL_TTL_SECONDS = 2 * 60 * 60
+NOTEBOOK_KERNEL_TTL_SECONDS = 1 * 60 * 60
@dataclass