-
Notifications
You must be signed in to change notification settings - Fork 3k
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
AddAfter should be able to cancel previous enqueues of the same key #131
Comments
…replicas Automatic merge from submit-queue Enqueue controllers after minreadyseconds when all pods are ready @janetkuo this should address #41697 (comment). Impossible to unit test this but it should stabilize some of our deployment e2e tests that occasionally fail because of availableReplicas not being updated. It should also fix #41641 Eventually I would like AddAfter to be able to cancel previous invocations of the same key so I opened kubernetes/client-go#131 @kubernetes/sig-apps-bugs
I hope another invocation of Add with the same key would also cancel the AddAfter. I don't want to process the same item twice. My use case is kubernetes/kubernetes#43032. |
Issues go stale after 90d of inactivity. Prevent issues from auto-closing with an If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or |
/lifecycle frozen |
…18.3 Bump to kubernetes v1.18.3 Kubernetes-commit: 8e3449361348b1ab53198c449eb7764436eadfa9
/remove-lifecycle stale |
Any progress about this issue? |
proposing this in kubernetes/kubernetes#113607 |
I had to close my PR since it clashes with kubernetes/kubernetes#112328, which is trying to introduce more rich functionality/interface to the delaying queue. Continuing a discussion there to get a consensus on the cancel functionality |
https://github.com/kubernetes/client-go/blob/master/util/workqueue/delaying_queue.go
Case:
I have another use case with ReplicaSets and MinReadySeconds.
Go has a func that seems to be doing what I am asking for
https://golang.org/pkg/time/#AfterFunc
If the delaying queue is meant to work as is currently then how about a new queue type that does what I need?
@deads2k
The text was updated successfully, but these errors were encountered: