-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Patch BigQueryClient to retry on network error (#3088)
* Patch BQClient to retry on network error At the moment sometimes long jobs can cause the BigQueryClient to timeout since the connection is created at initialisation of the target. This patch retries by re-creating the client object if it fails (up to a retry limit), so that the client will not be timed out when calling `complete()` on the BigQueryTarget after a long job. * Switch BQ retry to use tenacity decorator Note the use of the after lambda function to re-create the client if the connection fails * Fix indentation Co-authored-by: James McMurray <jmcmurray@spotify.com> Co-authored-by: Dillon Stadther <dlstadther+github@gmail.com>
- Loading branch information
1 parent
0c5c53b
commit ad5ddc9
Showing
1 changed file
with
38 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters