GeezerVison is showing github.com — num_retries for all requests like googleapiclient · Issue #3133 · googleapis/google-cloud-python
num_retries for all requests like googleapiclient #3133
Description
I am confused about the num_retries differences between the old googleapiclient and the new google-cloud-python.
I am able to specify num_retries for all API requests with the old googleapiclient by either
- specifying
num_retries for all requests
- or supplying own
requestBuilder for the googleapiclient.discovery.build which subclasses the original googleapiclient.http.HttpRequest and sets num_retries for all API requests.
The new google-cloud-python allows num_retries just for the storage blob upload. Is there other way to specify num_retries for other API calls? I think that all API calls (including Datastore, etc.) may fail by HTTP 500 or 429 and then they need to retry the requests, e.g. see https://cloud.google.com/storage/docs/exponential-backoff
Also, the googleapiclient.http._should_retry_response() seems different than google.cloud.streaming.http_wrapper.make_api_request(). E.g. the old one examines the response JSON payload, too.
Activity
dhermes commented on Mar 10, 2017
daspecster commented on Mar 10, 2017
Thanks @xmedeko! I'm going to close this and you can track progress on #2694.
@dhermes: Yup, I'll reference it in the list.
dhermes commented on Mar 10, 2017
Thanks @daspecster.
@xmedeko We don't have a set retry feature in place but it's something we'd like to add soon.
xmedeko commented on Mar 12, 2017
ContributorAuthor
More actions
Thanks, I'm going to watch that issue.
Metadata
Metadata
Development
No branches or pull requestsIssue actions