GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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

New issue
Copy link
New issue
Copy link
Closed
Closed
num_retries for all requests like googleapiclient#3133
Copy link
Assignees
daspecster
Labels
status: duplicateDuplicate.

Description

@xmedeko
xmedeko
opened on Mar 10, 2017
Issue body actions

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

  1. specifying num_retries for all requests
  2. 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

  1. dhermes commented on Mar 10, 2017

    @dhermes
    dhermes
    on Mar 10, 2017
    Contributor
    More actions

    @daspecster Can you merge this with the "retry" issue?

  2. daspecster commented on Mar 10, 2017

    @daspecster
    daspecster
    on Mar 10, 2017
    Contributor
    More actions

    Thanks @xmedeko! I'm going to close this and you can track progress on #2694.

    @dhermes: Yup, I'll reference it in the list.

  3. daspecster
    closed this as completedon Mar 10, 2017
  4. dhermes commented on Mar 10, 2017

    @dhermes
    dhermes
    on Mar 10, 2017
    Contributor
    More actions

    Thanks @daspecster.

    @xmedeko We don't have a set retry feature in place but it's something we'd like to add soon.

  5. xmedeko commented on Mar 12, 2017

    @xmedeko
    xmedeko
    on Mar 12, 2017
    ContributorAuthor
    More actions

    Thanks, I'm going to watch that issue.

  6. dhermes
    added
    status: duplicateDuplicate.
    on Apr 19, 2017
  7. JustinBeckwith
    assigned
    daspecster
    on Feb 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @daspecster
    daspecster

Labels

status: duplicateDuplicate.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.