From 83cb45b57c7f42a306bcfbaf6a4961676fc8f85c Mon Sep 17 00:00:00 2001 From: Andre Harms Date: Mon, 16 Feb 2026 10:00:15 +0100 Subject: [PATCH] fix: add retry configuration for HTTP requests in provider --- stackit/provider.go | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/stackit/provider.go b/stackit/provider.go index b90d7375..171fce79 100644 --- a/stackit/provider.go +++ b/stackit/provider.go @@ -45,6 +45,17 @@ var ( _ provider.Provider = &Provider{} ) +const ( + // maxRetries is the maximum number of retries for a failed HTTP request. + maxRetries = 3 + // initialDelay is the initial delay before the first retry attempt. + initialDelay = 2 * time.Second + // maxDelay is the maximum delay between retry attempts. + maxDelay = 90 * time.Second + // perTryTimeout is the timeout for each individual HTTP request attempt. + perTryTimeout = 30 * time.Second +) + // Provider is the provider implementation. type Provider struct { version string