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