github.com/remilapeyre/nomad@v0.8.5/jobspec/test-fixtures/migrate-job.hcl (about)

     1  job "foo" {
     2    datacenters = ["dc1"]
     3    type = "batch"
     4    migrate {
     5        max_parallel = 2
     6        health_check = "task_states"
     7        min_healthy_time = "11s"
     8        healthy_deadline = "11m"
     9    }
    10  
    11    group "bar" {
    12      count = 3
    13      task "bar" {
    14        driver = "raw_exec"
    15        config {
    16           command = "bash"
    17           args    = ["-c", "echo hi"]
    18        }
    19      }
    20  
    21      migrate {
    22          max_parallel = 3
    23          health_check = "checks"
    24          min_healthy_time = "1s"
    25          healthy_deadline = "1m"
    26      }
    27    }
    28  }