Skip to content
This repository has been archived by the owner on Oct 9, 2023. It is now read-only.

Workqueue should add items using a rate limiter #151

Merged
merged 1 commit into from
Jun 9, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pkg/controller/composite_workqueue.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ func (b *BatchingWorkQueue) runSubQueueHandler(ctx context.Context) {
}

for _, obj := range objectsRetrieved {
b.Add(obj)
b.AddRateLimited(obj)
// Finally, if no error occurs we Forget this item so it does not
// get queued again until another change happens.
b.subQueue.Forget(obj)
Expand Down