Allow unlimited Nomad reschedules

With this measure, we want to avoid template jobs being removed on the second rescheduling.
This commit is contained in:
Maximilian Paß
2023-06-01 01:06:42 +01:00
committed by Sebastian Serth
parent 1b3f505075
commit bcab46d746

View File

@ -22,6 +22,13 @@ job "template-0" {
attribute = "${node.unique.name}" attribute = "${node.unique.name}"
weight = 100 weight = 100
} }
restart {
delay = "0s"
}
reschedule {
unlimited = true
attempts = 0
}
task "default-task" { task "default-task" {
driver = "docker" driver = "docker"
@ -44,10 +51,6 @@ job "template-0" {
cpu = 40 cpu = 40
memory = 30 memory = 30
} }
restart {
delay = "0s"
}
} }
} }