Files
nomad/e2e/rescheduling/input/rescheduling_maxp_autorevert.hcl
2018-03-29 19:04:18 -05:00

36 lines
511 B
HCL

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