-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BRE-342 Implement retry mechanism with error handling to get secrets …
…from KV (#329) * BRE-342 DEBUG: Print error message for debuging purposes * BRE-342 REFACTOR: Error message while downloading secret * BRE-342 ADD: retry mechanism with error handling for null/undefined responses in getSecretValue to prevent failures and retry up to 3 times with a delay * BRE-342 REFACTOR: Increase RETRY_DELAY * BRE-342 REFACTOR: Added retry logic to getSecretValue to handle both response and apiResult errors * BRE-342 REFACTOR: retry logic in getSecretValue by extracting repetitive code into a helper function for cleaner retries
- Loading branch information
1 parent
d6235cf
commit 525b3ea
Showing
2 changed files
with
40 additions
and
10 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
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