mirror of
https://github.com/kemko/nomad.git
synced 2026-01-05 09:55:44 +03:00
Unique task
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user