github.com/quite/nomad@v0.8.6/jobspec/test-fixtures/reschedule-job.hcl (about)

     1  job "foo" {
     2    datacenters = ["dc1"]
     3    type = "batch"
     4    reschedule {
     5        attempts = 15
     6        interval = "30m"
     7        delay = "10s",
     8        delay_function = "constant"
     9    }
    10    group "bar" {
    11      count = 3
    12      task "bar" {
    13        driver = "raw_exec"
    14        config {
    15           command = "bash"
    16           args    = ["-c", "echo hi"]
    17        }
    18      }
    19    }
    20  }