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

Conversation

kumare3
Copy link
Contributor

@kumare3 kumare3 commented Jun 9, 2020

TL;DR

Everytime the object is re-enqueued to be processed, (in the K8s controller workqueue) it should be rate limited using any prior known conditions. For example, if a failure backoff is in effect it should be backed off, or if the bucketing is in effect, then the object should be throttled.

Type

  • Bug Fix
  • Feature
  • Plugin

Are all requirements met?

  • Code completed
  • Smoke tested
  • Unit tests added
  • Code documentation added
  • Any pending items have an associated Issue

Complete description

Using the RateLimitingInterface => https://godoc.org/k8s.io/client-go/util/workqueue#RateLimitingInterface method - AddRateLimited

Tracking Issue

flyteorg/flyte#309

Follow-up issue

NA

@kumare3 kumare3 requested a review from EngHabu as a code owner June 9, 2020 23:32
@codecov-commenter
Copy link

Codecov Report

Merging #151 into master will not change coverage.
The diff coverage is 100.00%.

@kumare3 kumare3 merged commit 3bc48b0 into master Jun 9, 2020
eapolinario pushed a commit to eapolinario/flytepropeller that referenced this pull request Aug 9, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants