open-nomad/e2e/taskevents/input/failed_sibling.nomad

35 lines
588 B
Plaintext
Raw Normal View History

job "failed_sibling" {
2019-10-11 12:00:05 +00:00
type = "service"
datacenters = ["dc1"]
constraint {
attribute = "${attr.kernel.name}"
value = "linux"
}
group "failed_sibling" {
restart {
attempts = 0
}
2019-10-11 12:00:05 +00:00
# Only the task named the same as the job has its events tested.
task "failed_sibling" {
driver = "raw_exec"
2019-10-11 12:00:05 +00:00
config {
command = "sleep"
args = ["1000"]
}
}
task "failure" {
driver = "raw_exec"
2019-10-11 12:00:05 +00:00
config {
command = "/bin/sh"
args = ["-c", "sleep 1 && exit 99"]
}
}
}
}