github.com/smithx10/nomad@v0.9.1-rc1/e2e/rescheduling/input/reschedule_success.hcl (about) 1 job "test3" { 2 datacenters = ["dc1"] 3 type = "service" 4 5 group "t3" { 6 count = 3 7 8 task "t3" { 9 driver = "raw_exec" 10 11 config { 12 command = "bash" 13 args = ["-c", "a=`cksum <<< \"${NOMAD_ALLOC_ID}\"| cut -d ' ' -f1`; if ! (( a % 2 )); then sleep 5000; else exit -1; fi"] 14 } 15 } 16 17 restart { 18 attempts = 0 19 delay = "0s" 20 mode = "fail" 21 } 22 23 reschedule { 24 attempts = 2 25 interval = "5m" 26 unlimited = false 27 } 28 } 29 }