Skip to content

Commit

Permalink
Lower retry count and improve error message of uninstall notifications (
Browse files Browse the repository at this point in the history
#5756)

(cherry picked from commit 0a96561)
  • Loading branch information
michel-laterman authored and mergify[bot] committed Oct 11, 2024
1 parent e151978 commit d0fe89a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/pkg/agent/install/uninstall.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ import (

// fleetAudit variables control retry attempts for contacting fleet
var (
fleetAuditAttempts = 10
fleetAuditAttempts = 5
fleetAuditWaitInit = time.Second
fleetAuditWaitMax = time.Second * 10
)
Expand Down Expand Up @@ -180,7 +180,7 @@ func notifyFleetAuditUninstall(ctx context.Context, log *logp.Logger, pt *progre
pt.Describe(fmt.Sprintf("notify Fleet: encountered unretryable error: %v", err))
return err
}
pt.Describe(fmt.Sprintf("notify Fleet: network error, retry in %v.", jitterBackoff.NextWait()))
pt.Describe(fmt.Sprintf("notify Fleet: network error: %v (retry in %v)", err, jitterBackoff.NextWait()))
jitterBackoff.Wait()
continue
}
Expand Down

0 comments on commit d0fe89a

Please sign in to comment.