mirror of
https://github.com/rancher/norman.git
synced 2025-09-01 23:36:58 +00:00
Add ignorable error to bypass requeue
This commit is contained in:
@@ -162,7 +162,7 @@ func (g *genericController) processNextWorkItem() bool {
|
||||
|
||||
// do your work on the key. This method will contains your "do stuff" logic
|
||||
err := g.syncHandler(key.(string))
|
||||
if err == nil {
|
||||
if _, ok := err.(*ForgetError); err == nil || ok {
|
||||
g.queue.Forget(key)
|
||||
return true
|
||||
}
|
||||
|
Reference in New Issue
Block a user