Skip to content
Permalink
Browse files
fix: increase default retry deadline to 10 minutes (#859)
The backend API has a timeout of 4 minutes, so the default of 2 minutes was not
allowing for any retries to happen in some cases.

Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:
- [ ] Make sure to open an issue as a [bug/issue](https://github.com/googleapis/python-bigquery/issues/new/choose) before writing your code!  That way we can discuss the change, evaluate designs, and agree on the general idea
- [ ] Ensure the tests and linter pass
- [ ] Code coverage does not decrease (if any source code was changed)
- [ ] Appropriate docs were updated (if necessary)

Fixes #853  🦕
  • Loading branch information
tswast committed Aug 6, 2021
1 parent cf0b0d8 commit 30770fd0575fbd5aaa70c14196a4cc54627aecd2
Showing with 1 addition and 1 deletion.
  1. +1 −1 google/cloud/bigquery/retry.py
@@ -47,7 +47,7 @@ def _should_retry(exc):
return reason in _RETRYABLE_REASONS


DEFAULT_RETRY = retry.Retry(predicate=_should_retry)
DEFAULT_RETRY = retry.Retry(predicate=_should_retry, deadline=600.0)
"""The default retry object.
Any method with a ``retry`` parameter will be retried automatically,

0 comments on commit 30770fd

Please sign in to comment.