open-nomad/e2e/rescheduling/input/rescheduling_canary_autorevert.nomad
Tim Gross 294c7149a2 e2e: rescheduling tests
Ports the rescheduling tests (which aren't running in CI) into the current
test framework so that they're run on nightly, and exercises the new CLI
helpers.
2020-09-10 13:00:37 -04:00

36 lines
549 B
HCL

job "test" {
datacenters = ["dc1"]
type = "service"
group "t1" {
count = 3
task "t1" {
driver = "raw_exec"
config {
command = "bash"
args = ["-c", "sleep 5000"]
}
}
update {
canary = 3
max_parallel = 1
min_healthy_time = "1s"
auto_revert = true
healthy_deadline = "2s"
progress_deadline = "3s"
}
restart {
attempts = 0
mode = "fail"
}
reschedule {
unlimited = "true"
}
}
}