-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(provider): add retry capability for API requests (#163)
Added support for retrying failed API requests through a new `retries` configuration option. This can help handle temporary network issues or service interruptions. - Added new `retries` field to provider configuration - Implemented retry logic using `go-retryablehttp` - Support configuration via both provider config and `BACKSTAGE_RETRIES` environment variable - Modified HTTP client setup to properly chain transports for both retries and headers - Added request timeout configuration (`timeout_seconds`) Partly addresses #160.
- Loading branch information
Showing
3 changed files
with
60 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,3 +26,5 @@ stringplanmodifier | |
planmodifier | ||
jsondecode | ||
tfplugindocs | ||
retryablehttp | ||
retryable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters