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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

38 lines
656 B
Plaintext
Raw Normal View History

# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0
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"]
}
}
}
}