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

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

28 lines
430 B
HCL
Raw Normal View History

# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0
job "foo" {
datacenters = ["dc1"]
2019-10-11 12:00:05 +00:00
type = "batch"
reschedule {
2019-10-11 12:00:05 +00:00
attempts = 15
interval = "30m"
delay = "10s"
delay_function = "constant"
}
2019-10-11 12:00:05 +00:00
group "bar" {
count = 3
2019-10-11 12:00:05 +00:00
task "bar" {
driver = "raw_exec"
2019-10-11 12:00:05 +00:00
config {
2019-10-11 12:00:05 +00:00
command = "bash"
args = ["-c", "echo hi"]
}
}
}
}