Allow unlimited Nomad reschedules
With this measure, we want to avoid template jobs being removed on the second rescheduling.
This commit is contained in:

committed by
Sebastian Serth

parent
1b3f505075
commit
bcab46d746
@ -22,6 +22,13 @@ job "template-0" {
|
||||
attribute = "${node.unique.name}"
|
||||
weight = 100
|
||||
}
|
||||
restart {
|
||||
delay = "0s"
|
||||
}
|
||||
reschedule {
|
||||
unlimited = true
|
||||
attempts = 0
|
||||
}
|
||||
|
||||
task "default-task" {
|
||||
driver = "docker"
|
||||
@ -44,10 +51,6 @@ job "template-0" {
|
||||
cpu = 40
|
||||
memory = 30
|
||||
}
|
||||
|
||||
restart {
|
||||
delay = "0s"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user