René's URL Explorer Experiment


Title: Retry should have a public way to access the predicate · Issue #15026 · googleapis/google-cloud-python · GitHub

Open Graph Title: Retry should have a public way to access the predicate · Issue #15026 · googleapis/google-cloud-python

X Title: Retry should have a public way to access the predicate · Issue #15026 · googleapis/google-cloud-python

Description: Is your feature request related to a problem? Please describe. In BigQuery, there are some operations like "start a query" that can actually take multiple API requests. It's usually just jobs.insert, but if there's a conflict, then we al...

Open Graph Description: Is your feature request related to a problem? Please describe. In BigQuery, there are some operations like "start a query" that can actually take multiple API requests. It's usually just jobs.inser...

X Description: Is your feature request related to a problem? Please describe. In BigQuery, there are some operations like "start a query" that can actually take multiple API requests. It's usually j...

Opengraph URL: https://github.com/googleapis/google-cloud-python/issues/15026

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Retry should have a public way to access the predicate","articleBody":" **Is your feature request related to a problem? Please describe.**\n\nIn BigQuery, there are some operations like \"start a query\" that can actually take multiple API requests. It's usually just `jobs.insert`, but if there's a conflict, then we also make calls to `jobs.get`. In addition, these have different predicates, such as wanting to retry `jobs.get` on 404 in this context but not others.\n\n **Describe the solution you'd like**\n\nIdeally, I could take a user-provided generic retry and tweak if for the given scenario. For example:\n\n```python\nget_job_retry = retry.with_predicate(\n                        lambda exc: isinstance(exc, core_exceptions.NotFound)\n                        # Reference the original retry to avoid recursion.\n                        or retry._predicate(exc)\n)\n```\n\nor\n\n```python\ndef do_query_predicate(exc) -> bool:\n            if isinstance(exc, core_exceptions.RetryError):\n                exc = exc.cause\n\n            # Per https://github.com/googleapis/python-bigquery/issues/2134, sometimes\n            # we get a 404 error. In this case, if we get this far, assume that the job\n            # doesn't actually exist and try again. We can't add 404 to the default\n            # job_retry because that happens for errors like \"this table does not\n            # exist\", which probably won't resolve with a retry.\n            if isinstance(exc, core_exceptions.NotFound):\n                message = exc.message\n                # Don't try to retry table/dataset not found, just job not found.\n                # The URL contains jobs, so use whitespace to disambiguate.\n                return message is not None and \" job\" in message.lower()\n\n            # Reference the original job_retry to avoid recursion.\n            return job_retry._predicate(exc)\n)\n```\n\n **Describe alternatives you've considered**\n\n1. Just as I already have two retry objects in the parameters for the `query()` API, I could update it to have two more for these specific situations.\n2. We could also add a method `with_additional_predicate` that adds an `or` clause + this function to the previous predicate.\n\n **Additional context**\n\nhttps://github.com/googleapis/python-bigquery/pull/2135 is an issue where I will likely add more \"retry\" parameters for finer-grained control, but would have preferred taking a user's retry object and amending the predicate.\n","author":{"url":"https://github.com/tswast","@type":"Person","name":"tswast"},"datePublished":"2025-02-20T16:42:07Z","url":"https://github.com/googleapis/google-cloud-python/issues/15026"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:1e1f3b45-3516-60ba-cecc-e43fefac2131
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9BD8:20741A:EFDECA:13CA04D:6AFE98F3
html-safe-nonce63443ad7959362f70277f1ba1336bd03412300f1eaecb3f53fb5d18b824d1a17
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QkQ4OjIwNzQxQTpFRkRFQ0E6MTNDQTA0RDo2QUZFOThGMyIsInZpc2l0b3JfaWQiOiI5NzgwMjYyNTA1MTU2ODM1NzAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac99deb0a7e1cd27ea99918cb2ff8d7f997f4a8dcb905115e9d05b504a124fec10
hovercard-subject-tagissue:3804911196
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/googleapis/google-cloud-python/15026/issue_layout
twitter:imagehttps://opengraph.githubassets.com/033e84ac8e4e4cb5dccf2335dbba95450bf91bf3c7049d315bc608120a8abd5b/googleapis/google-cloud-python/issues/15026
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/033e84ac8e4e4cb5dccf2335dbba95450bf91bf3c7049d315bc608120a8abd5b/googleapis/google-cloud-python/issues/15026
og:image:altIs your feature request related to a problem? Please describe. In BigQuery, there are some operations like "start a query" that can actually take multiple API requests. It's usually just jobs.inser...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernametswast
hostnamegithub.com
expected-hostnamegithub.com
Noneb3c0f155eafc27e60db6e254d1ffff0e072e9ab3b4018a5ee518797c19d89f86
turbo-cache-controlno-preview
go-importgithub.com/googleapis/google-cloud-python git https://github.com/googleapis/google-cloud-python.git
octolytics-dimension-user_id16785467
octolytics-dimension-user_logingoogleapis
octolytics-dimension-repository_id16316451
octolytics-dimension-repository_nwogoogleapis/google-cloud-python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id16316451
octolytics-dimension-repository_network_root_nwogoogleapis/google-cloud-python
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release4a10310af51a1bfffbedc4fd81cb582acf0cb0ff
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/googleapis/python-api-core/issues/796#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgoogleapis%2Fgoogle-cloud-python%2Fissues%2F15026
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgoogleapis%2Fgoogle-cloud-python%2Fissues%2F15026
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=googleapis%2Fgoogle-cloud-python
Reloadhttps://github.com/googleapis/python-api-core/issues/796
Reloadhttps://github.com/googleapis/python-api-core/issues/796
Reloadhttps://github.com/googleapis/python-api-core/issues/796
googleapishttps://github.com/googleapis
google-cloud-pythonhttps://github.com/googleapis/google-cloud-python
Codehttps://github.com/googleapis/google-cloud-python
Issues450 (450)https://github.com/googleapis/google-cloud-python/issues
Pull requests203 (203)https://github.com/googleapis/google-cloud-python/pulls
Discussionshttps://github.com/googleapis/google-cloud-python/discussions
Actionshttps://github.com/googleapis/google-cloud-python/actions
Projectshttps://github.com/googleapis/google-cloud-python/projects
Security and qualityhttps://github.com/googleapis/google-cloud-python/security
Insightshttps://github.com/googleapis/google-cloud-python/insights
https://github.com/googleapis/google-cloud-python
New issuehttps://github.com/login?return_to=https://github.com/googleapis/google-cloud-python/issues/15026
New issuehttps://github.com/login?return_to=https://github.com/googleapis/google-cloud-python/issues/15026
Retry should have a public way to access the predicatehttps://github.com/googleapis/google-cloud-python/issues/15026#top
https://github.com/tswast
priority: p2Moderately-important priority. Fix may not be included in next release.https://github.com/googleapis/google-cloud-python/issues?q=state%3Aopen%20label%3A%22priority%3A%20p2%22
type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.https://github.com/googleapis/google-cloud-python/issues?q=state%3Aopen%20label%3A%22type%3A%20feature%20request%22
https://github.com/tswast
tswasthttps://github.com/tswast
on Feb 20, 2025https://github.com/googleapis/google-cloud-python/issues/15026#issue-3804911196
googleapis/python-bigquery#2135https://github.com/googleapis/python-bigquery/pull/2135
blunderbuss-gcfhttps://github.com/apps/blunderbuss-gcf
vchudnov-ghttps://github.com/vchudnov-g
on Feb 20, 2025https://github.com/googleapis/google-cloud-python/issues/15026#event-21993143178
vchudnov-ghttps://github.com/vchudnov-g
type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.https://github.com/googleapis/google-cloud-python/issues?q=state%3Aopen%20label%3A%22type%3A%20feature%20request%22
priority: p2Moderately-important priority. Fix may not be included in next release.https://github.com/googleapis/google-cloud-python/issues?q=state%3Aopen%20label%3A%22priority%3A%20p2%22
on Feb 21, 2025https://github.com/googleapis/google-cloud-python/issues/15026#event-21993143200
vchudnov-ghttps://github.com/vchudnov-g
on Feb 21, 2025https://github.com/googleapis/google-cloud-python/issues/15026#event-21993143242
https://github.com/vchudnov-g
vchudnov-ghttps://github.com/vchudnov-g
on Feb 21, 2025https://github.com/googleapis/google-cloud-python/issues/15026#issuecomment-3739239463
https://github.com/parthea
partheahttps://github.com/parthea
on Jan 12, 2026https://github.com/googleapis/google-cloud-python/issues/15026#issuecomment-3739239479
partheahttps://github.com/parthea
googleapis/python-api-corehttps://github.com/googleapis/python-api-core
on Jan 12, 2026https://github.com/googleapis/google-cloud-python/issues/15026#event-21993144106
daniel-sanchehttps://github.com/daniel-sanche
tswasthttps://github.com/tswast
on May 27, 2026https://github.com/googleapis/google-cloud-python/issues/15026#event-26036355127
https://github.com/Rajatendu1
Rajatendu1https://github.com/Rajatendu1
on Nov 18, 2026https://github.com/googleapis/google-cloud-python/issues/15026#issuecomment-6975492384
@tswasthttps://github.com/tswast
Sign up for freehttps://github.com/signup?return_to=https://github.com/googleapis/google-cloud-python/issues/15026
Sign in to commenthttps://github.com/login?return_to=https://github.com/googleapis/google-cloud-python/issues/15026
tswasthttps://github.com/tswast
priority: p2Moderately-important priority. Fix may not be included in next release.https://github.com/googleapis/google-cloud-python/issues?q=state%3Aopen%20label%3A%22priority%3A%20p2%22
type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.https://github.com/googleapis/google-cloud-python/issues?q=state%3Aopen%20label%3A%22type%3A%20feature%20request%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.