Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add retry factory to consolidate retry strategies across dbt-bigquery (…
…#1395) * fix imports * create a retry factory and move relevant objects from connections * add on_error method for deadline retries * remove dependency on retry_and_handle from cancel_open * remove dependencies on retry_and_handle * remove timeout methods from connection manager * add retry to get_bq_table * move client factory to credentials module so that on_error can be moved to the retry factory in the retry module * move on_error factory to retry module * move client factories from python_submissions module to credentials module * create a clients module * retry all client factories by default * move polling from manual check in python_submissions module into retry_factory * move load_dataframe logic from adapter to connection manager, use the built-in timeout argument instead of a manual polling method * move upload_file logic from adapter to connection manager, use the built-in timeout argument instead of a manual polling method, remove the manual polling method * move the retry to polling for done instead of create * align new retries with original methods, simplify retry factory * create a method for the dataproc endpoint * make imports explicit, remove unused constant * update names in clients.py to follow the naming convention * update names in connections.py to follow the naming convention * update names in credentials.py to follow the naming convention * update names in python_submissions.py to follow the naming convention * update names in retry.py to follow the naming convention --------- Co-authored-by: Colin Rogers <[email protected]>
- Loading branch information