Skip to content

Commit

Permalink
Workqueue should add items using a rate limiter (flyteorg#151)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ketan Umare committed Jun 9, 2020
1 parent 03d1c1d commit 3bc48b0
Showing 1 changed file with 1 addition and 1 deletion.
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

0 comments on commit 3bc48b0

Please sign in to comment.