Skip to content

Commit

Permalink
chore: fix unfinishedWorkSeconds metric (#1816)
Browse files Browse the repository at this point in the history
  • Loading branch information
jigisha620 authored Nov 15, 2024
1 parent 995040b commit f85df3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/controllers/provisioning/scheduling/scheduler.go
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ func (s *Scheduler) Solve(ctx context.Context, pods []*corev1.Pod) Results {
}
}
}
UnfinishedWorkSeconds.Set(0, map[string]string{ControllerLabel: injection.GetControllerName(ctx), schedulingIDLabel: string(s.id)})
UnfinishedWorkSeconds.Delete(map[string]string{ControllerLabel: injection.GetControllerName(ctx), schedulingIDLabel: string(s.id)})
for _, m := range s.newNodeClaims {
m.FinalizeScheduling()
}
Expand Down

0 comments on commit f85df3d

Please sign in to comment.