Skip to content

[Backport branch-0.3] RetryHttpClient to enable Retry for UC - #1196

Closed
tdas wants to merge 1 commit into
branch-0.3from
backport-1145-to-branch-0.3
Closed

tdas wants to merge 1 commit into
branch-0.3from
backport-1145-to-branch-0.3

Conversation

@tdas

@tdas tdas commented Nov 12, 2025

Copy link
Copy Markdown
Contributor

Backport of #1145 to branch-0.3.


PR Checklist

  • A description of the changes is added to the description of this PR.
  • If there is a related issue, make sure it is linked to this PR.
  • If you've fixed a bug or added code that should be tested, add tests!
  • If you've added or modified a feature, documentation in docs is updated

Description of changes

Instead of wrapping each type of Api such as TempCredsApi or TablesApi with a "Retryable" version, we instead create our own RetryableHttpClient and retry at the http level. This way, new Apis just need to pass the necessary configuration to the ApiClientFactory, which creates a RetryingApiClient, which then creates a RetryingHttpClient. The user may pass in a custom interceptor -- a function that defines under which error codes, status codes, and exception they would want the ApiClient to retry.

@tdas

tdas commented Nov 12, 2025

Copy link
Copy Markdown
Contributor Author

Please cherry-pick the changes locally and resolve any conflicts.

git fetch origin backport-1145-to-branch-0.3
git worktree add --checkout .worktree/backport-1145-to-branch-0.3 backport-1145-to-branch-0.3
cd .worktree/backport-1145-to-branch-0.3
git reset --hard HEAD^
git cherry-pick -x 71837e9d2556cc4d740b249c5dc4eb7dd574d32e
git push --force-with-lease

@tdas tdas mentioned this pull request Nov 12, 2025
4 tasks
Signed-off-by: Timothy Wang <[email protected]>
@tdas
tdas force-pushed the backport-1145-to-branch-0.3 branch from aace907 to 7204c79 Compare November 12, 2025 06:43
@tdas

tdas commented Nov 12, 2025

Copy link
Copy Markdown
Contributor Author

Closing this as there is a conflict, btter to create a fresh new PR.

@tdas tdas closed this Nov 12, 2025
@openinx
openinx deleted the backport-1145-to-branch-0.3 branch March 27, 2026 22:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants