fix: webpool containers now stay alive 24h; recycle on session expiry

- Pool containers got IDLE_TIMEOUT=86400 instead of SESSION_IDLE_SECONDS (300s)
  to prevent them from cycling every 5 minutes while idle
- On session expiry, WEBPOOLIDX containers are now stopped so ensure_web_pool()
  recreates them fresh for the next user (prevents dirty Chromium state)
This commit is contained in:
2026-07-21 13:53:18 +00:00
parent 3eff94fbb2
commit ca5d1af2b5
2 changed files with 9 additions and 2 deletions
+1 -1
View File
@@ -145,7 +145,7 @@ def ensure_web_pool(target_size: Optional[int] = None) -> None:
"portal.pool.slot": str(i),
}
env = {
"IDLE_TIMEOUT": str(SESSION_IDLE_SECONDS),
"IDLE_TIMEOUT": "86400",
"ENABLE_HEARTBEAT": "0",
"SESSION_ID": f"webpool-{i}",
"X11VNC_FLAGS": X11VNC_FLAGS,