Skip to content
Snippets Groups Projects
Unverified Commit a361d25c authored by Daniel Kłobuszewski's avatar Daniel Kłobuszewski Committed by GitHub
Browse files

Remove stale TODO

We had async node drain for years now.
parent 9c501ed6
Branches x13n-patch-11
Tags
No related merge requests found
...@@ -504,9 +504,7 @@ func UpdateDurationFromStart(label FunctionLabel, start time.Time) { ...@@ -504,9 +504,7 @@ func UpdateDurationFromStart(label FunctionLabel, start time.Time) {
// UpdateDuration records the duration of the step identified by the label // UpdateDuration records the duration of the step identified by the label
func UpdateDuration(label FunctionLabel, duration time.Duration) { func UpdateDuration(label FunctionLabel, duration time.Duration) {
// TODO(maciekpytel): remove second condition if we manage to get if duration > LogLongDurationThreshold {
// asynchronous node drain
if duration > LogLongDurationThreshold && label != ScaleDown {
klog.V(4).Infof("Function %s took %v to complete", label, duration) klog.V(4).Infof("Function %s took %v to complete", label, duration)
} }
functionDuration.WithLabelValues(string(label)).Observe(duration.Seconds()) functionDuration.WithLabelValues(string(label)).Observe(duration.Seconds())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment