Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
severinson committed Jun 28, 2023
1 parent 0b80222 commit 41c5f93
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions internal/scheduler/context/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@ type SchedulingContext struct {
ResourceScarcity map[string]float64
// Per-queue scheduling contexts.
QueueSchedulingContexts map[string]*QueueSchedulingContext
// Sum of weights across all queues.
WeightSum float64
// Total resources across all clusters available at the start of the scheduling cycle.
TotalResources schedulerobjects.ResourceList
// = TotalResources.AsWeightedMillis(ResourceScarcity).
Expand Down Expand Up @@ -139,7 +137,6 @@ func (sctx *SchedulingContext) AddQueueSchedulingContext(queue string, weight fl
for _, rl := range initialAllocatedByPriorityClass {
allocated.Add(rl)
}
sctx.WeightSum += weight
qctx := &QueueSchedulingContext{
SchedulingContext: sctx,
Created: time.Now(),
Expand Down

0 comments on commit 41c5f93

Please sign in to comment.