github.com/Ilhicas/nomad@v1.0.4-0.20210304152020-e86851182bc3/jobspec/test-fixtures/reschedule-job-unlimited.hcl (about)

     1  job "foo" {
     2    datacenters = ["dc1"]
     3    type        = "batch"
     4  
     5    reschedule {
     6      delay          = "10s"
     7      delay_function = "exponential"
     8      max_delay      = "120s"
     9      unlimited      = true
    10    }
    11  
    12    group "bar" {
    13      count = 3
    14  
    15      task "bar" {
    16        driver = "raw_exec"
    17  
    18        config {
    19          command = "bash"
    20          args    = ["-c", "echo hi"]
    21        }
    22      }
    23    }
    24  }