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

     1  job "demo2" {
     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", "sleep 170000"]
    14        }
    15      }
    16  
    17      update {
    18        max_parallel     = 1
    19        min_healthy_time = "1s"
    20        auto_revert      = false
    21        healthy_deadline = "2s"
    22        progress_deadline = "10s"
    23      }
    24  
    25      restart {
    26        attempts = 0
    27        mode     = "fail"
    28      }
    29  
    30      reschedule {
    31        unlimited = "true"
    32        delay = "5s"
    33      }
    34    }
    35  }