Skip to content

Commit

Permalink
HGI-6352: Add backoff for ServiceUnavailable exception
Browse files Browse the repository at this point in the history
Fix backoff declaration
  • Loading branch information
hsyyid committed Aug 14, 2024
1 parent fbb8d4b commit 0bbbce2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion target_bigquery/processhandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,10 @@ def primary_key_condition(self, stream):

@backoff.on_exception(
backoff.expo,
google_exceptions.BadRequest,
(
google_exceptions.BadRequest,
google_exceptions.ServiceUnavailable,
),
max_tries=3
)
def _do_temp_table_based_load(self, rows):
Expand Down

0 comments on commit 0bbbce2

Please sign in to comment.