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:
Kynan Ware 2025-09-03 15:24:21 -06:00
parent b94ffe90c4
commit 9dfe89fe50

View file

@ -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),
)
}