github.com/emate/nomad@v0.8.2-wo-binpacking/e2e/rescheduling/input/rescheduling_canary_autorevert.hcl (about)

     1  job "test" {
     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", "sleep 5000"]
    14        }
    15      }
    16  
    17      update {
    18        canary           = 3
    19        max_parallel     = 1
    20        min_healthy_time = "1s"
    21        healthy_deadline = "1m"
    22        auto_revert      = true
    23      }
    24  
    25      restart {
    26        attempts = 0
    27        mode     = "fail"
    28      }
    29  
    30      reschedule {
    31        unlimited = "true"
    32      }
    33    }
    34  }