evict and replace when the artifacts of a task change
This commit is contained in:
parent
393807a677
commit
7843ed1218
|
@ -299,6 +299,9 @@ func tasksUpdated(a, b *structs.TaskGroup) bool {
|
||||||
if !reflect.DeepEqual(at.Env, bt.Env) {
|
if !reflect.DeepEqual(at.Env, bt.Env) {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
if !reflect.DeepEqual(at.Artifacts, bt.Artifacts) {
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
|
||||||
// Inspect the network to see if the dynamic ports are different
|
// Inspect the network to see if the dynamic ports are different
|
||||||
if len(at.Resources.Networks) != len(bt.Resources.Networks) {
|
if len(at.Resources.Networks) != len(bt.Resources.Networks) {
|
||||||
|
|
Loading…
Reference in New Issue