Skip to content

Commit

Permalink
[YUNIKORN-2855] Remove the call for update metrics with nil resource
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuqi-lucas committed Sep 6, 2024
1 parent 72b0afc commit ab850af
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions pkg/scheduler/objects/queue.go
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,6 @@ func (sq *Queue) setResources(guaranteedResource, maxResource *resources.Resourc
sq.queueEvents.SendMaxResourceChangedEvent(sq.QueuePath, maxResource)
}
sq.maxResource = nil
sq.updateMaxResourceMetrics()
default:
log.Log(log.SchedQueue).Debug("max resources setting ignored: cannot set zero max resources",
zap.String("queue", sq.QueuePath))
Expand All @@ -439,7 +438,6 @@ func (sq *Queue) setResources(guaranteedResource, maxResource *resources.Resourc
sq.queueEvents.SendGuaranteedResourceChangedEvent(sq.QueuePath, guaranteedResource)
}
sq.guaranteedResource = nil
sq.updateGuaranteedResourceMetrics()
default:
log.Log(log.SchedQueue).Debug("guaranteed resources setting ignored: cannot set zero guaranteed resources",
zap.String("queue", sq.QueuePath))
Expand Down

0 comments on commit ab850af

Please sign in to comment.