github.com/bigcommerce/nomad@v0.9.3-bc/e2e/rescheduling/input/rescheduling_progressdeadline.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", "if (($RANDOM%2)); then sleep 200000 ; else exit -1 ; fi"]
    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 = "30s"
    23      }
    24  
    25      restart {
    26        attempts = 0
    27        mode     = "fail"
    28      }
    29  
    30      reschedule {
    31        unlimited = "true"
    32        delay_function = "constant"
    33        delay = "5s"
    34      }
    35    }
    36  }