Increase backoff timing for agent task creation
Extended the max elapsed time and max interval for the exponential backoff strategy in agent task creation to improve reliability during retries.
This commit is contained in:
parent
b94ffe90c4
commit
9dfe89fe50
1 changed files with 2 additions and 2 deletions
|
|
@ -141,9 +141,9 @@ func createRun(opts *CreateOptions) error {
|
|||
// Ensure we have a backoff strategy.
|
||||
if opts.BackOff == nil {
|
||||
opts.BackOff = backoff.NewExponentialBackOff(
|
||||
backoff.WithMaxElapsedTime(4*time.Second),
|
||||
backoff.WithMaxElapsedTime(10*time.Second),
|
||||
backoff.WithInitialInterval(300*time.Millisecond),
|
||||
backoff.WithMaxInterval(2*time.Second),
|
||||
backoff.WithMaxInterval(10*time.Second),
|
||||
backoff.WithMultiplier(1.5),
|
||||
)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue