Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
severinson committed Jun 22, 2023
1 parent 71dbe31 commit 11443f7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/armada/server/lease.go
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,9 @@ func (q *AggregatedQueueServer) getJobs(ctx context.Context, req *api.StreamingL
activeClusterReports := scheduling.FilterActiveClusters(usageReports)
totalCapacity := make(armadaresource.ComputeResources)
for _, clusterReport := range activeClusterReports {
totalCapacity.Add(util.GetClusterAvailableCapacity(clusterReport))
if clusterReport.Pool == req.Pool {
totalCapacity.Add(util.GetClusterAvailableCapacity(clusterReport))
}
}

// Collect all allowed priorities.
Expand Down

0 comments on commit 11443f7

Please sign in to comment.