Merge pull request #1130 from Garrybest/pr_rate

add rate limited when errors occur in scheduler
This commit is contained in:
karmada-bot 2021-12-20 19:10:27 +08:00 committed by GitHub
commit 00f46c6452
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -582,7 +582,7 @@ func (s *Scheduler) handleErr(err error, key interface{}) {
return
}
s.queue.Add(key)
s.queue.AddRateLimited(key)
metrics.CountSchedulerBindings(metrics.ScheduleAttemptFailure)
}