github.com/Ilhicas/nomad@v1.0.4-0.20210304152020-e86851182bc3/e2e/rescheduling/input/rescheduling_progressdeadline.nomad (about) 1 job "demo2" { 2 3 datacenters = ["dc1", "dc2"] 4 5 constraint { 6 attribute = "${attr.kernel.name}" 7 value = "linux" 8 } 9 10 type = "service" 11 12 group "t2" { 13 count = 1 14 15 task "t2" { 16 driver = "raw_exec" 17 18 config { 19 command = "bash" 20 args = ["-c", "sleep 300"] 21 } 22 } 23 24 update { 25 # we want the first allocation to take a while to become healthy, 26 # so that we can check the deployment's progress deadline before 27 # and after it becomes healthy 28 min_healthy_time = "10s" 29 healthy_deadline = "15s" 30 progress_deadline = "20s" 31 32 max_parallel = 1 33 auto_revert = false 34 } 35 36 restart { 37 attempts = 0 38 mode = "fail" 39 } 40 41 reschedule { 42 unlimited = "true" 43 delay_function = "constant" 44 delay = "5s" 45 } 46 } 47 }