open-nomad/jobspec/test-fixtures/reschedule-job-unlimited.hcl

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

25 lines
368 B
HCL
Raw Normal View History

2018-03-07 21:26:45 +00:00
job "foo" {
datacenters = ["dc1"]
2019-10-11 12:00:05 +00:00
type = "batch"
2018-03-07 21:26:45 +00:00
reschedule {
2019-10-11 12:00:05 +00:00
delay = "10s"
2018-03-07 21:26:45 +00:00
delay_function = "exponential"
2019-10-11 12:00:05 +00:00
max_delay = "120s"
unlimited = true
2018-03-07 21:26:45 +00:00
}
2019-10-11 12:00:05 +00:00
2018-03-07 21:26:45 +00:00
group "bar" {
count = 3
2019-10-11 12:00:05 +00:00
2018-03-07 21:26:45 +00:00
task "bar" {
driver = "raw_exec"
2019-10-11 12:00:05 +00:00
2018-03-07 21:26:45 +00:00
config {
2019-10-11 12:00:05 +00:00
command = "bash"
args = ["-c", "echo hi"]
2018-03-07 21:26:45 +00:00
}
}
}
}