Skip to content

Commit

Permalink
[grid] Update DefaultSlotSelector
Browse files Browse the repository at this point in the history
  • Loading branch information
pujagani committed Jun 10, 2021
1 parent 049e780 commit 1b7b948
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public Set<SlotId> selectSlot(Capabilities capabilities, Set<NodeStatus> nodes)
// And use the node id as a tie-breaker.
.thenComparing(NodeStatus::getId))
.flatMap(node -> node.getSlots().stream()
.filter(slot -> !slot.getSession().isPresent())
.filter(slot -> slot.getSession()==null)
.filter(slot -> slot.isSupporting(capabilities))
.map(Slot::getId))
.collect(toImmutableSet());
Expand Down

0 comments on commit 1b7b948

Please sign in to comment.