Skip to content

Commit

Permalink
Add comment about longDelay caveat
Browse files Browse the repository at this point in the history
  • Loading branch information
ewrenn8 committed Aug 7, 2020
1 parent 3ef9767 commit 9dffd91
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/app/app_reconcile.go
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,8 @@ func (a *App) syncPeriod() time.Duration {
func (a *App) requeueIfNecessary() reconcile.Result {
var (
shortDelay = 4 * time.Second
// Must always be >= tooLongAfterSuccess so that we dont requeue
// without work to do
// replace last 5 seconds with int from range [5,10]
longerDelay = a.syncPeriod() - 5 + wait.Jitter(5*time.Second, 1.0)
)
Expand Down

0 comments on commit 9dffd91

Please sign in to comment.