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 — Add a default retry parameter to all public methods · Issue #315 · googleapis/python-storage

This repository was archived by the owner on Mar 31, 2026. It is now read-only.
This repository was archived by the owner on Mar 31, 2026. It is now read-only.

Add a default retry parameter to all public methods #315

Copy link
Copy link
Closed
#331
Closed
Add a default retry parameter to all public methods#315
#331
Copy link
Assignees
HemangChothani
Labels
api: storageIssues related to the googleapis/python-storage API.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

Description

@krisowski
krisowski
opened on Nov 16, 2020
Issue body actions

All public storage method should have a default retry parametr defined so that clients don't have to explicitly use the @retry.Retry decorator to handle transient issues, like 503 error code.

The solution could look similar to the implementation in the google-cloud-bigquery where retry is implemented in every public method and it is set to DEFAULT_RETRY by default.

Activity

  1. product-auto-label
    added
    api: storageIssues related to the googleapis/python-storage API.
    on Nov 16, 2020
  2. yoshi-automation
    added
    triage meI really want to be triaged.
    🚨This issue needs some love.
    on Nov 17, 2020
  3. frankyn
    added
    type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.
    and removed
    🚨This issue needs some love.
    triage meI really want to be triaged.
    on Nov 23, 2020
  4. HemangChothani
    self-assigned this
    on Nov 28, 2020
  5. HemangChothani commented on Nov 30, 2020

    @HemangChothani
    HemangChothani
    on Nov 30, 2020
    Contributor
    More actions

    Almost all the public methods has retry parameter with default value, adding in the remaining methods and will expose the parameter for users.

    python-storage/google/cloud/storage/client.py

    Lines 528 to 535 in 6a0b8a7

    api_response = self._connection.api_request(
    method="POST",
    path="/b",
    query_params=query_params,
    data=properties,
    _target_object=bucket,
    timeout=timeout,
    retry=DEFAULT_RETRY,

  6. andrewsg
    closed this as completedin #331on Dec 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @HemangChothani
    HemangChothani

Labels

api: storageIssues related to the googleapis/python-storage API.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

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.