fix: [nomad-step-4] S4.1 — nomad/jobs/agents.hcl (7 roles, llama, vault-templated bot tokens) (#955) #959

Merged
dev-qwen merged 4 commits from fix/issue-955 into main 2026-04-17 10:49:36 +00:00
Showing only changes of commit c17548a216 - Show all commits

View file

@ -68,6 +68,24 @@ job "agents" {
mode = "delay" mode = "delay"
} }
# Health check
# Script-based check matching docker-compose's pgrep healthcheck.
# Group-level service with `task` attribute on the check to run the
# script inside the agents container.
service {
name = "agents"
provider = "nomad"
check {
type = "script"
task = "agents"
command = "/usr/bin/pgrep"
args = ["-f", "entrypoint.sh"]
interval = "60s"
timeout = "5s"
}
}
task "agents" { task "agents" {
driver = "docker" driver = "docker"
@ -177,22 +195,6 @@ FORGE_VAULT_TOKEN=seed-me
EOT EOT
} }
# Health check
# Script-based check matching docker-compose's pgrep healthcheck.
# Nomad script checks run inside the container.
service {
name = "agents"
provider = "nomad"
check {
type = "script"
command = "/usr/bin/pgrep"
args = ["-f", "entrypoint.sh"]
interval = "60s"
timeout = "5s"
}
}
# Agents run Claude/llama sessions need CPU + memory headroom. # Agents run Claude/llama sessions need CPU + memory headroom.
resources { resources {
cpu = 500 cpu = 500