This is an automated email from the ASF dual-hosted git repository.
wilfreds pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/yunikorn-core.git
The following commit(s) were added to refs/heads/master by this push:
new bc7c0012 [YUNIKORN-2071] Remove
updateAllocatedAndPendingResourceMetrics (#685)
bc7c0012 is described below
commit bc7c00124c4cfb77c1f4cffe434227ac33d3e875
Author: Wilfred Spiegelenburg <[email protected]>
AuthorDate: Wed Oct 25 18:28:25 2023 +1100
[YUNIKORN-2071] Remove updateAllocatedAndPendingResourceMetrics (#685)
Dead code removal
Closes: #685
Signed-off-by: Wilfred Spiegelenburg <[email protected]>
---
pkg/scheduler/objects/queue.go | 8 --------
1 file changed, 8 deletions(-)
diff --git a/pkg/scheduler/objects/queue.go b/pkg/scheduler/objects/queue.go
index 1b76d63b..985ff024 100644
--- a/pkg/scheduler/objects/queue.go
+++ b/pkg/scheduler/objects/queue.go
@@ -1555,14 +1555,6 @@ func (sq *Queue) updateMaxResourceMetrics() {
}
}
-// updateAllocatedAndPendingResourceMetrics updates allocated and pending
resource metrics for all queue types.
-// Deprecated: use specific metric update function for efficiency.
-func (sq *Queue) updateAllocatedAndPendingResourceMetrics() {
- sq.updateAllocatedResourceMetrics()
- sq.updatePendingResourceMetrics()
- sq.updatePreemptingResourceMetrics()
-}
-
// updateAllocatedResourceMetrics updates allocated resource metrics for all
queue types.
func (sq *Queue) updateAllocatedResourceMetrics() {
for k, v := range sq.allocatedResource.Resources {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]