github.com/smithx10/nomad@v0.9.1-rc1/e2e/rescheduling/input/rescheduling_fail.hcl (about)

     1  job "test2" {
     2    datacenters = ["dc1"]
     3    type        = "service"
     4  
     5    group "t2" {
     6      count = 3
     7  
     8      task "t2" {
     9        driver = "raw_exec"
    10  
    11        config {
    12          command = "bash"
    13          args    = ["-c", "lol 5000"]
    14        }
    15      }
    16  
    17      restart {
    18        attempts = 0
    19        delay    = "0s"
    20        mode     = "fail"
    21      }
    22  
    23      reschedule {
    24        attempts  = 2
    25        interval  = "5m"
    26        unlimited = false
    27      }
    28    }
    29  }