mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
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:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user