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 Jan 30, 2020
1 parent f2c4003 commit 884e6e1
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 884e6e1

Please sign in to comment.