Skip to content

Commit

Permalink
🔧 add timeout also for batch jobs in load_table_from_uri (#90)
Browse files Browse the repository at this point in the history
Co-authored-by: Alejandro Martinez <[email protected]>
  • Loading branch information
AlejandroUPC and Alejandro Martinez authored Jul 1, 2024
1 parent f48f1d4 commit f8f74be
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions target_bigquery/batch_job.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ def run(self) -> None:
BytesIO(job.data),
job.table,
num_retries=3,
timeout=self.config.get("timeout", 600),
job_config=bigquery.LoadJobConfig(**job.config),
).result()
except Exception as exc:
Expand Down

0 comments on commit f8f74be

Please sign in to comment.