Skip to content

Commit 802f08c

Browse files
gabemonterochmouel
authored andcommitted
double default retry backoff for piplinerun patch
1 parent 8973f97 commit 802f08c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pkg/action/patch.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@ func PatchPipelineRun(ctx context.Context, logger *zap.SugaredLogger, whatPatchi
1818
return nil, nil
1919
}
2020
var patchedPR *tektonv1.PipelineRun
21+
// double the retry; see https://issues.redhat.com/browse/SRVKP-3134
22+
doubleRetry := retry.DefaultRetry
23+
doubleRetry.Steps *= 2
24+
doubleRetry.Duration *= 2
25+
doubleRetry.Factor *= 2
26+
doubleRetry.Jitter *= 2
2127
err := retry.RetryOnConflict(retry.DefaultRetry, func() error {
2228
patch, err := json.Marshal(mergePatch)
2329
if err != nil {

0 commit comments

Comments
 (0)