Skip to content

Commit 30770fd

Browse files
authored
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 🦕
1 parent cf0b0d8 commit 30770fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

google/cloud/bigquery/retry.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def _should_retry(exc):
4747
return reason in _RETRYABLE_REASONS
4848

4949

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

0 commit comments

Comments
 (0)