Skip to content

Commit

Permalink
runner/group: should continue if revision is old
Browse files Browse the repository at this point in the history
Signed-off-by: Wei Fu <[email protected]>
  • Loading branch information
fuweid committed Feb 26, 2024
1 parent 6085194 commit 570ca3c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions runner/group/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,9 @@ func (h *Handler) Wait(ctx context.Context) error {
if err != nil {
switch {
case apierrors.IsResourceExpired(err) || apierrors.IsGone(err):
klog.V(2).Infof("reset last seen revision and continue, since receive: %v", err)
lastRv = ""
continue
// should retry if apiserver is down or unavailable.
case apierrors.IsTooManyRequests(err) || apierrors.IsInternalError(err):
<-backoff.Backoff().C()
Expand Down

0 comments on commit 570ca3c

Please sign in to comment.