Skip to content

Commit

Permalink
fix: assigned retry object
Browse files Browse the repository at this point in the history
  • Loading branch information
deryrahman committed Apr 24, 2024
1 parent 9dea8ca commit 7547e9f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions task/bq2bq/executor/bumblebee/bigquery_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,11 @@ def __init__(self, client, labels, writer, retry_timeout = None, on_job_finish =
if_additional_transient_error = if_exception_type(
requests.exceptions.Timeout,
requests.exceptions.SSLError,
BadRequest,
)
predicate = if_exception_funcs(if_transient_error, if_additional_transient_error)
retry = bigquery.DEFAULT_RETRY.with_deadline(retry_timeout) if retry_timeout else bigquery.DEFAULT_RETRY
retry.with_predicate(predicate)
self.retry = retry
self.retry = retry.with_predicate(predicate)
self.on_job_finish = on_job_finish
self.on_job_register = on_job_register

Expand Down

0 comments on commit 7547e9f

Please sign in to comment.