Skip to content
This repository has been archived by the owner on Aug 26, 2023. It is now read-only.

Commit

Permalink
refactor(main): using retry
Browse files Browse the repository at this point in the history
  • Loading branch information
cuisongliu committed Apr 19, 2023
1 parent 4dd9180 commit 2d8e1cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/types/shell.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func ExecShellForAny(secrets ...string) func(shells []any) error {
return func(shells []any) error {
// 设置重试策略
exponentialBackoff := backoff.NewExponentialBackOff()
exponentialBackoff.MaxElapsedTime = 30 * time.Second
exponentialBackoff.MaxElapsedTime = 15 * time.Second
for _, sh := range shells {
if s, ok := sh.(RetryShell); ok {
if err := backoff.Retry(func() error {
Expand Down

0 comments on commit 2d8e1cf

Please sign in to comment.