evict and replace when the artifacts of a task change

This commit is contained in:
Alex Dadgar 2016-03-15 19:32:49 -07:00
parent 393807a677
commit 7843ed1218
1 changed files with 3 additions and 0 deletions

View File

@ -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) {