bd889c82aa
The rescheduling test workloads were created before we had Windows targets in the E2E nightly run. When these were recently ported to the e2e framework they were missing the constraint to Linux machines. Also added a little extra time to polling to avoid some flakiness on the first run, and a minor readability adjustment to the job names.
44 lines
720 B
HCL
44 lines
720 B
HCL
job "demo2" {
|
|
|
|
datacenters = ["dc1", "dc2"]
|
|
|
|
constraint {
|
|
attribute = "${attr.kernel.name}"
|
|
value = "linux"
|
|
}
|
|
|
|
type = "service"
|
|
|
|
group "t2" {
|
|
count = 3
|
|
|
|
task "t2" {
|
|
driver = "raw_exec"
|
|
|
|
config {
|
|
command = "bash"
|
|
args = ["-c", "if (($RANDOM%2)); then sleep 200000 ; else exit -1 ; fi"]
|
|
}
|
|
}
|
|
|
|
update {
|
|
max_parallel = 1
|
|
min_healthy_time = "1s"
|
|
auto_revert = false
|
|
healthy_deadline = "2s"
|
|
progress_deadline = "30s"
|
|
}
|
|
|
|
restart {
|
|
attempts = 0
|
|
mode = "fail"
|
|
}
|
|
|
|
reschedule {
|
|
unlimited = "true"
|
|
delay_function = "constant"
|
|
delay = "5s"
|
|
}
|
|
}
|
|
}
|