github.com/emate/nomad@v0.8.2-wo-binpacking/e2e/rescheduling/input/rescheduling_maxp_autorevert.hcl (about) 1 job "demo3" { 2 datacenters = ["dc1"] 3 type = "service" 4 5 group "t2" { 6 count = 3 7 8 task "t2" { 9 driver = "raw_exec" 10 11 config { 12 command = "bash" 13 args = ["-c", "sleep 5000"] 14 } 15 } 16 17 update { 18 max_parallel = 1 19 min_healthy_time = "1s" 20 healthy_deadline = "1m" 21 auto_revert = true 22 } 23 24 restart { 25 attempts = 0 26 mode = "fail" 27 } 28 29 reschedule { 30 unlimited = "true" 31 32 # attempts = 0 33 } 34 } 35 }