github.com/bigcommerce/nomad@v0.9.3-bc/e2e/rescheduling/input/norescheduling.hcl (about)

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