Skip to content

Commit

Permalink
comment for filtering reason
Browse files Browse the repository at this point in the history
  • Loading branch information
drewbailey committed Feb 3, 2020
1 parent 92f0a34 commit a880d75
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scheduler/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,8 @@ func diffSystemAllocsForNode(job *structs.Job, nodeID string,
// update or ignore above. Ignore placements for tainted or
// ineligible nodes
if !ok {
// Tainted and ineligible nodes for a non existing alloc
// should be filtered out and not count towards ignore or place
if _, tainted := taintedNodes[nodeID]; tainted {
continue
}
Expand Down

0 comments on commit a880d75

Please sign in to comment.