FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

feat: support dynamic retry backoff values by daniel-sanche · Pull Request #793 · googleapis/python-api-core · GitHub

This repository was archived by the owner on Feb 23, 2026. It is now read-only.
/ python-api-core Public archive

feat: support dynamic retry backoff values - #793

Merged
parthea merged 12 commits into
mainfrom
postpone_sleep_generation
Mar 19, 2025
Merged

feat: support dynamic retry backoff values#793
parthea merged 12 commits into
mainfrom
postpone_sleep_generation

Conversation

Copy link
Copy Markdown
Contributor

This PR moves backoff generation until after an rpc is complete and on_error callbacks have been called. This gives the client a chance to change what backoff value is used based on the error details.

This feature is required for Bigtable, where the backend can send retry_info packets to inform the client on how long to wait before a retry

Fixes #792

daniel-sanche requested review from a team February 14, 2025 00:36
product-auto-label Bot added the size: m Pull request size is medium. label Feb 14, 2025

parthea left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Local testing looks good. Test results in googleapis/gapic-generator-python#2359 look good. I'm also waiting for test results in cl/736133031. Once the tests in cl/736133031 pass and we are confident that there won't be an infinite loop ( due to use of while True without another exit condition), we can move forward with this PR.

parthea marked this pull request as draft March 17, 2025 13:33

parthea commented Mar 17, 2025

Copy link
Copy Markdown
Contributor

I'm going to move this to draft until a regression test is added. Please mark it as ready to review when this PR is ready.

daniel-sanche marked this pull request as ready for review March 17, 2025 23:25

Copy link
Copy Markdown
Contributor Author

The tests have been added, so this is ready to review again

parthea merged commit 70697a3 into main Mar 19, 2025
parthea deleted the postpone_sleep_generation branch March 19, 2025 15:09
This was referenced May 30, 2025
This file contains hidden or 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
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

size: m Pull request size is medium.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Retry should generate sleep time after attempt

4 participants


Back | FazBrowse Home | New Git URL