chore(dogfood): increase container graceful stop time (#17528)

Fixes workspace stop when you've run `devcontainer up` in coder/coder.

The previous attempt in #17110 gave insufficient time.
This commit is contained in:
Mathias Fredriksson
2025-04-23 13:40:51 +03:00
committed by GitHub
parent 0ef7d0b3e5
commit 1ba02f4297
+9 -3
View File
@@ -425,10 +425,16 @@ resource "docker_container" "workspace" {
# CPU limits are unnecessary since Docker will load balance automatically
memory = data.coder_workspace_owner.me.name == "code-asher" ? 65536 : 32768
runtime = "sysbox-runc"
# Ensure the workspace is given time to execute shutdown scripts.
destroy_grace_seconds = 60
stop_timeout = 60
# Ensure the workspace is given time to:
# - Execute shutdown scripts
# - Stop the in workspace Docker daemon
# - Stop the container, especially when using devcontainers,
# deleting the overlay filesystem can take a while.
destroy_grace_seconds = 300
stop_timeout = 300
stop_signal = "SIGINT"
env = [
"CODER_AGENT_TOKEN=${coder_agent.dev.token}",
"USE_CAP_NET_ADMIN=true",