diff --git a/deployments/docker-nats-stack.toml b/deployments/docker-nats-stack.toml index 712d0f4be..8c28e581b 100644 --- a/deployments/docker-nats-stack.toml +++ b/deployments/docker-nats-stack.toml @@ -65,7 +65,9 @@ network = "archie-core_default" # for the pinning convention this repo follows for its own GHCR image. image = "git.example.com/you/archie-agent:v1.21.0" # or "@sha256:..." for a production digest pin max_concurrency = 4 -max_uptime = "60m" +# Must outlast the whole-task limit (default 4h), or the reaper ends a run the +# task budget would have parked. +max_uptime = "5h" # "missing": pull only when the image is absent locally. "always" against a # private registry answers 401 because the daemon sends no credentials, so # refresh the agent by hand: docker compose pull agent diff --git a/internal/infrastructure/configuration/defaults.go b/internal/infrastructure/configuration/defaults.go index 9d7a6e1a9..e5a245a81 100644 --- a/internal/infrastructure/configuration/defaults.go +++ b/internal/infrastructure/configuration/defaults.go @@ -19,7 +19,9 @@ const ( defaultForgeHost = "https://github.com" defaultDispatchTrigger = "assignee" defaultAckReaction = "eyes" - defaultContainerUptime = 60 * time.Minute + // defaultContainerUptime outlasts the default whole-task limit (4h) so the + // task budget, not the container reaper, ends a run. + defaultContainerUptime = 5 * time.Hour defaultVolumeTTL = 72 * time.Hour defaultPullPolicy = "missing" defaultContainerImage = "ghcr.io/samcharles93/archie-agent:latest"