github.com/remilapeyre/nomad@v0.8.5/jobspec/test-fixtures/reschedule-job-unlimited.hcl (about)

     1  job "foo" {
     2    datacenters = ["dc1"]
     3    type = "batch"
     4    reschedule {
     5      delay = "10s",
     6      delay_function = "exponential"
     7      max_delay="120s"
     8      unlimited = true
     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  }