-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Python BQ] Retry get_table for quota errors #28820
Merged
Merged
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
e31b93b
retry get_table on quota errors
ahmedabu98 ad464b1
add tests
ahmedabu98 dece14d
tweak test
ahmedabu98 b3b58c6
remove comments
ahmedabu98 7f7a6b8
use httperror
ahmedabu98 753bc67
only retry on transient reasons
ahmedabu98 be35778
default exceptions to none at import error
ahmedabu98 06e3f80
lint fix
ahmedabu98 351e6e5
lint fix
ahmedabu98 929db63
Merge branch 'master' of https://github.com/ahmedabu98/beam into get_…
ahmedabu98 604a836
address comments
ahmedabu98 bfdc47c
fix tests
ahmedabu98 b5d671d
deserialize content first
ahmedabu98 e64019f
lint
ahmedabu98 45846c6
ignore tests when imports fail, only json load when needed
ahmedabu98 d70b1a8
default HttpForbiddenError to none
ahmedabu98 a7c1e1d
default to none when import fails
ahmedabu98 4992a83
default to non when import fails
ahmedabu98 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a deeply nested information. Is the response guaranteed (documented) to have this format? In any case, would you mind add a comment for the example error json loads, or is there an example error message could share?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm basing this off of the structure of the exception returned from
get_table()
:There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the detail. Anyways this is wrapped in a a fail-safe try clause so LGTM