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