294c7149a2
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.
37 lines
547 B
HCL
37 lines
547 B
HCL
job "demo3" {
|
|
datacenters = ["dc1"]
|
|
type = "service"
|
|
|
|
group "t2" {
|
|
count = 3
|
|
|
|
task "t2" {
|
|
driver = "raw_exec"
|
|
|
|
config {
|
|
command = "bash"
|
|
args = ["-c", "sleep 15000"]
|
|
}
|
|
}
|
|
|
|
update {
|
|
max_parallel = 1
|
|
min_healthy_time = "1s"
|
|
auto_revert = true
|
|
healthy_deadline = "2s"
|
|
progress_deadline = "3s"
|
|
}
|
|
|
|
restart {
|
|
attempts = 0
|
|
mode = "fail"
|
|
}
|
|
|
|
reschedule {
|
|
unlimited = "true"
|
|
|
|
# attempts = 0
|
|
}
|
|
}
|
|
}
|