Unverified Commit 83fb1c0a authored by Maciej Szulik's avatar Maciej Szulik Committed by Christoph Blecker

Never clean backoff in job controller

parent 5ed1a5a3
...@@ -357,10 +357,10 @@ func (jm *JobController) enqueueController(obj interface{}, immediate bool) { ...@@ -357,10 +357,10 @@ func (jm *JobController) enqueueController(obj interface{}, immediate bool) {
return return
} }
if immediate { backoff := time.Duration(0)
jm.queue.Forget(key) if !immediate {
backoff = getBackoff(jm.queue, key)
} }
backoff := getBackoff(jm.queue, key)
// TODO: Handle overlapping controllers better. Either disallow them at admission time or // TODO: Handle overlapping controllers better. Either disallow them at admission time or
// deterministically avoid syncing controllers that fight over pods. Currently, we only // deterministically avoid syncing controllers that fight over pods. Currently, we only
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment