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.
36 lines
521 B
HCL
36 lines
521 B
HCL
job "test1" {
|
|
datacenters = ["dc1"]
|
|
type = "service"
|
|
|
|
group "t1" {
|
|
count = 3
|
|
|
|
task "t1" {
|
|
driver = "raw_exec"
|
|
|
|
config {
|
|
command = "bash"
|
|
args = ["-c", "lol 5000"]
|
|
}
|
|
}
|
|
|
|
update {
|
|
max_parallel = 1
|
|
min_healthy_time = "10s"
|
|
auto_revert = false
|
|
}
|
|
|
|
restart {
|
|
attempts = 0
|
|
delay = "0s"
|
|
mode = "fail"
|
|
}
|
|
|
|
reschedule {
|
|
attempts = 0
|
|
interval = "5m"
|
|
unlimited = false
|
|
}
|
|
}
|
|
}
|