Unique task

This commit is contained in:
Alex Dadgar
2016-11-04 14:53:37 -07:00
parent 55e7d6f7c6
commit 16d1fede7d

View File

@@ -1105,7 +1105,7 @@ func (r *TaskRunner) handleUpdate(update *structs.Allocation) error {
var updatedTask *structs.Task
for _, t := range tg.Tasks {
if t.Name == r.task.Name {
updatedTask = t
updatedTask = t.Copy()
}
}
if updatedTask == nil {