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 — feat(api_core): add retry param into PollingFuture() and it's inheritors by IlyaFaer · Pull Request #9923 · googleapis/google-cloud-python

Conversation

@IlyaFaer

@IlyaFaer IlyaFaer commented Dec 6, 2019 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Towards #6197

Looks like it's the last thing that should be done for this issue. CMIIW.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
IlyaFaer
feat(api_core): add retry param into PollingFuture() and it's inheritors
8896c5b
Towards #6197
@IlyaFaer IlyaFaer added the api: core label Dec 6, 2019
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Dec 6, 2019
IlyaFaer
IlyaFaer commented Dec 6, 2019
View reviewed changes
Comment thread api_core/google/api_core/future/polling.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread api_core/tests/unit/test_operation.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread api_core/google/api_core/operation.py
# RPC as it will not change once done.
if not self._operation.done:
self._operation = self._refresh()
self._operation = self._refresh(retry=retry)

@IlyaFaer IlyaFaer Dec 6, 2019

Copy link
Copy Markdown
Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adding retry into inheritor of the PollingFuture() (the one above) and passing it further. As self._refresh is functools.partial, we can just pass retry as a named arg - it'll be added to those args which were prepared while creating functools.partial

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
IlyaFaer
Lint fix.
13b8553
@IlyaFaer

IlyaFaer commented Dec 6, 2019 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Author

Some BigQuery tests failed, but, as I see, they are failing in pure master too. And got an error in Sphinx:

sphinx.errors.SphinxWarning: failed to reach any of the inventories with the following issues:
intersphinx inventory 'https://requests.kennethreitz.org/en/stable/objects.inv' not fetchable due to <class 'requests.exceptions.ConnectionError'>: HTTPSConnectionPool(host='requests.kennethreitz.org', port=443): Max retries exceeded with url: /en/stable/objects.inv (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f0555132910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@IlyaFaer
IlyaFaer requested review from busunkim96, jba and tseaver December 6, 2019 15:14
@IlyaFaer
IlyaFaer marked this pull request as ready for review December 6, 2019 15:14
@IlyaFaer
IlyaFaer requested a review from a team December 6, 2019 15:14
IlyaFaer
Revert "Lint fix."
22e8c11
This reverts commit 13b8553.
@IlyaFaer IlyaFaer added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Dec 6, 2019
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Dec 6, 2019
@IlyaFaer IlyaFaer added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Dec 17, 2019
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Dec 17, 2019
Gurov Ilya
Merge branch 'master' into bigquery_retry_param
0cfff6b
@tswast
tswast requested review from a team and removed request for a team January 23, 2020 16:43
tswast
tswast approved these changes Jan 23, 2020
View reviewed changes

@tswast tswast left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me. Thanks for your patience in the review.

I'd like an API core owner to sign off as well, such as @busunkim96

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
busunkim96
busunkim96 approved these changes Jan 24, 2020
View reviewed changes
@busunkim96
busunkim96 merged commit 8e7b7f8 into googleapis:master Jan 24, 2020
This was referenced Jan 29, 2020
chore(asset): bump copyright year to 2020, tweak docstring formatting (via synth) #10223
Merged
chore(automl): bump copyright year to 2020, tweak docstring formatting (via synth) #10224
Merged
chore(bigquery): bump copyright year to 2020, tweak docstring formatting (via synth) #10225
Merged
feat(bigquerydatatransfer): undeprecate resource name helper methods; add py2 deprecation warning; bump copyright year to 2020 (via synth) #10226
Merged
chore(billingbudgets): bump copyright year to 2020, tweak docstring formatting (via synth) #10227
Merged
feat(datacatalog): undeprecate resource name helper methods, bump copyright year to 2020, tweak docstring formatting (via synth) #10228
Merged
docs(datalabeling): update docstrings; bump copyright year to 2020 (via synth) #10229
Merged
feat(documentai): bump copyright year to 2020, tweak docstring formatting (via synth) #10230
Merged
This was referenced Jan 29, 2020
fix(iam): bump copyright year to 2020 (via synth) #10231
Merged
chore(iot): bump copyright year to 2020 (via synth) #10232
Merged
fix(irm): change default retry and timeout config; bump copyright year to 2020 (via synth) #10233
Merged
docs(language): change docstring formatting; bump copyright year to 2020 (via synth) #10234
Merged
chore(phishingprotection): bump copyright year to 2020 (via synth) #10235
Merged
chore(pubsub): bump copyright year to 2020 (via synth) #10236
Closed
chore(redis): bump copyright year to 2020, tweak docstring formatting (via synth) #10237
Merged
chore(speech): bump copyright year to 2020, tweak docstring formatting (via synth) #10238
Merged
fix(talent): change default timeout values; edit docstrings; bump copyright year to 2020 (via synth) #10239
Merged
chore(texttospeech): bump copyright year to 2020, tweak docstring formatting (via synth) #10240
Merged
chore(trace): bump copyright year to 2020, tweak docstring formatting (via synth) #10241
Merged
chore(vision): bump copyright year to 2020, tweak docstring formatting (via synth) #10242
Merged
chore(websecurityscanner): bump copyright year to 2020, tweak docstring formatting (via synth) #10243
Merged
[CHANGE ME] Re-generated container to pick up changes in the API or client library generator. #10256
Closed
[CHANGE ME] Re-generated datastore to pick up changes in the API or client library generator. #10261
Closed
@IlyaFaer
IlyaFaer deleted the bigquery_retry_param branch September 24, 2020 08:02
parthea pushed a commit that referenced this pull request Nov 24, 2025
Gurov Ilya @busunkim96
feat(api_core): add retry param into PollingFuture() and it's inherit…
f7e4c7c
…ors (#9923)

* feat(api_core): add retry param into PollingFuture() and it's inheritors

Towards #6197
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@tswast tswast tswast approved these changes
@tseaver tseaver Awaiting requested review from tseaver
@jba jba Awaiting requested review from jba
+1 more reviewer
@busunkim96 busunkim96 busunkim96 approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

api: core cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

5 participants

@IlyaFaer @tswast @busunkim96 @googlebot @yoshi-kokoro
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.