Skip to content

Commit eb06576

Browse files
Set job_retry to None (#1093)
Co-authored-by: Mila Page <[email protected]>
1 parent 4dc395b commit eb06576

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
kind: Fixes
2+
body: Set job_retry to None to resolve Google Cloud warning
3+
time: 2025-05-13T10:52:11.119783-04:00
4+
custom:
5+
Author: katieclaiborne-duet
6+
Issue: '#1088'

dbt-bigquery/src/dbt/adapters/bigquery/connections.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,8 @@ def _query_and_results(
572572
query_job = client.query(
573573
query=sql,
574574
job_config=query_job_config,
575-
job_id=job_id, # note, this disables retry since the job_id will have been used
575+
job_id=job_id,
576+
job_retry=None,
576577
timeout=self._retry.create_job_creation_timeout(),
577578
)
578579
if (

dbt-bigquery/tests/unit/test_bigquery_connection_manager.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ def test_query_and_results(self, MockQueryJobConfig):
9999
query="sql",
100100
job_config=MockQueryJobConfig(),
101101
job_id=1,
102+
job_retry=None,
102103
timeout=self.credentials.job_creation_timeout_seconds,
103104
)
104105

0 commit comments

Comments
 (0)