Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(wip) gonfidel/implement-weighted-queues #3

Closed
wants to merge 9 commits into from

Conversation

Gonfidel
Copy link
Owner

Linked to issue kro-run#198

@Gonfidel Gonfidel changed the title gonfidel/implement-weighted-queues (wip) gonfidel/implement-weighted-queues Feb 15, 2025
@@ -71,7 +71,7 @@ func GetResourceGraphDefinitionInstanceGVK(group, apiVersion, kind string) schem
func GetResourceGraphDefinitionInstanceGVR(group, apiVersion, kind string) schema.GroupVersionResource {
pluralKind := flect.Pluralize(strings.ToLower(kind))
return schema.GroupVersionResource{
Group: fmt.Sprintf("%s.%s", pluralKind, group),
Group: group,
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is also remediated in kro-run#305 and is related to a bug that causes queues and informers to fail cleanup

weight: weight,
queue: workqueue.NewNamedRateLimitingQueue(
workqueue.NewTypedMaxOfRateLimiter(
workqueue.NewTypedItemExponentialFailureRateLimiter[any](200*time.Millisecond, 1000*time.Second),
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Old rate limiter types were failing linting due to deprecation warnings. New rate limiters support types. I believe any IS what we want here but feel free to correct me.

@Gonfidel Gonfidel closed this Feb 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant