Commit 33176d07 authored by Tim Gross's avatar Tim Gross
Browse files

backport of commit 6e545d4f240a6de117aeae8de01c67ff7df52414

parent 7ad00b49
Showing with 3 additions and 1 deletion
+3 -1
...@@ -5124,7 +5124,9 @@ func (s *StateStore) updatePluginWithJobSummary(index uint64, summary *structs.J ...@@ -5124,7 +5124,9 @@ func (s *StateStore) updatePluginWithJobSummary(index uint64, summary *structs.J
plug = plug.Copy() plug = plug.Copy()
} }
plug.UpdateExpectedWithJob(alloc.Job, summary, alloc.ServerTerminalStatus()) plug.UpdateExpectedWithJob(alloc.Job, summary,
alloc.Job.Status == structs.JobStatusDead)
err = updateOrGCPlugin(index, txn, plug) err = updateOrGCPlugin(index, txn, plug)
if err != nil { if err != nil {
return err return err
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment