From 9dfe89fe50957672236be9f0799367a50f6d6856 Mon Sep 17 00:00:00 2001 From: Kynan Ware <47394200+BagToad@users.noreply.github.com> Date: Wed, 3 Sep 2025 15:24:21 -0600 Subject: [PATCH] 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. --- pkg/cmd/agent-task/create/create.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/cmd/agent-task/create/create.go b/pkg/cmd/agent-task/create/create.go index efc930621..12f2008fa 100644 --- a/pkg/cmd/agent-task/create/create.go +++ b/pkg/cmd/agent-task/create/create.go @@ -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), ) }