github.com/Ilhicas/nomad@v1.0.4-0.20210304152020-e86851182bc3/jobspec/test-fixtures/migrate-job.hcl (about) 1 job "foo" { 2 datacenters = ["dc1"] 3 type = "batch" 4 5 migrate { 6 max_parallel = 2 7 health_check = "task_states" 8 min_healthy_time = "11s" 9 healthy_deadline = "11m" 10 } 11 12 group "bar" { 13 count = 3 14 15 task "bar" { 16 driver = "raw_exec" 17 18 config { 19 command = "bash" 20 args = ["-c", "echo hi"] 21 } 22 } 23 24 migrate { 25 max_parallel = 3 26 health_check = "checks" 27 min_healthy_time = "1s" 28 healthy_deadline = "1m" 29 } 30 } 31 }