21 lines
343 B
HCL
21 lines
343 B
HCL
|
job "foo" {
|
||
|
datacenters = ["dc1"]
|
||
|
type = "batch"
|
||
|
reschedule {
|
||
|
delay = "10s",
|
||
|
delay_function = "exponential"
|
||
|
delay_ceiling="120s"
|
||
|
unlimited = true
|
||
|
}
|
||
|
group "bar" {
|
||
|
count = 3
|
||
|
task "bar" {
|
||
|
driver = "raw_exec"
|
||
|
config {
|
||
|
command = "bash"
|
||
|
args = ["-c", "echo hi"]
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|