-
Notifications
You must be signed in to change notification settings - Fork 163
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add default retry on all client factories, which includes 502 and 503 errors * update retries to use defaults and ensure that a timeout or deadline is set (cherry picked from commit a219818)
- Loading branch information
1 parent
069472d
commit 1adbf7e
Showing
4 changed files
with
92 additions
and
22 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
kind: Fixes | ||
body: Fix issue where dbt-bigquery was not retrying in certain retryable scenarios, | ||
e.g. 503's | ||
time: 2024-11-20T16:31:01.60689-05:00 | ||
custom: | ||
Author: mikealfare | ||
Issue: "682" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
[version] | ||
path = "dbt/adapters/bigquery/__version__.py" | ||
|
||
[build.targets.sdist] | ||
packages = ["dbt"] | ||
|
||
[build.targets.wheel] | ||
packages = ["dbt"] | ||
|
||
[envs.default] | ||
python = "3.9" | ||
dependencies = [ | ||
"dbt-adapters @ git+https://github.com/dbt-labs/dbt-adapters.git", | ||
"dbt-common @ git+https://github.com/dbt-labs/dbt-common.git", | ||
"dbt-tests-adapter @ git+https://github.com/dbt-labs/dbt-adapters.git#subdirectory=dbt-tests-adapter", | ||
"dbt-core @ git+https://github.com/dbt-labs/dbt-core.git#subdirectory=core", | ||
"ddtrace==2.3.0", | ||
"ipdb~=0.13.13", | ||
"pre-commit==3.7.0", | ||
"freezegun", | ||
"pytest>=7.0,<8.0", | ||
"pytest-csv~=3.0", | ||
"pytest-dotenv", | ||
"pytest-logbook~=1.2", | ||
"pytest-mock", | ||
"pytest-xdist", | ||
] | ||
|
||
[envs.default.scripts] | ||
setup = "pre-commit install" | ||
code-quality = "pre-commit run --all-files" | ||
unit-tests = "python -m pytest {args:tests/unit}" | ||
integration-tests = "python -m pytest --profile service_account {args:tests/functional}" | ||
docker-dev = [ | ||
"docker build -f docker/dev.Dockerfile -t dbt-bigquery-dev .", | ||
"docker run --rm -it --name dbt-bigquery-dev -v $(shell pwd):/opt/code dbt-bigquery-dev", | ||
] | ||
|
||
[envs.build] | ||
detached = true | ||
dependencies = [ | ||
"wheel", | ||
"twine", | ||
"check-wheel-contents", | ||
] | ||
|
||
[envs.build.scripts] | ||
check-all = [ | ||
"- check-wheel", | ||
"- check-sdist", | ||
] | ||
check-wheel = [ | ||
"twine check dist/*", | ||
"find ./dist/dbt_bigquery-*.whl -maxdepth 1 -type f | xargs python -m pip install --force-reinstall --find-links=dist/", | ||
"pip freeze | grep dbt-bigquery", | ||
] | ||
check-sdist = [ | ||
"check-wheel-contents dist/*.whl --ignore W007,W008", | ||
"find ./dist/dbt_bigquery-*.gz -maxdepth 1 -type f | xargs python -m pip install --force-reinstall --find-links=dist/", | ||
"pip freeze | grep dbt-bigquery", | ||
] | ||
docker-prod = "docker build -f docker/Dockerfile -t dbt-bigquery ." |