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

     1  job "foo" {
     2    datacenters = ["dc1"]
     3    type        = "batch"
     4  
     5    reschedule {
     6      attempts       = 15
     7      interval       = "30m"
     8      delay          = "10s"
     9      delay_function = "constant"
    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  }