Skip to content

Commit

Permalink
fix(bigquery/ingestor): handle quota exceeded for project.list requests
Browse files Browse the repository at this point in the history
  • Loading branch information
sagar-salvi-apptware committed Jul 15, 2024
1 parent aa92a99 commit 1520e35
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,11 @@ def _should_retry(exc: BaseException) -> bool:
# to restrict the request calls inside list_project but issue still occured.
projects_iterator = self.bq_client.list_projects(
retry=retry.Retry(
predicate=_should_retry, initial=10, maximum=180, timeout=900
predicate=_should_retry,
initial=10,
maximum=180,
multiplier=2,
timeout=900,
)
)
projects: List[BigqueryProject] = [
Expand Down

0 comments on commit 1520e35

Please sign in to comment.