Title: ServiceUnavailable missing in polling retries · Issue #183 · googleapis/python-api-core · GitHub
Open Graph Title: ServiceUnavailable missing in polling retries · Issue #183 · googleapis/python-api-core
X Title: ServiceUnavailable missing in polling retries · Issue #183 · googleapis/python-api-core
Description: "503 service unavailable" errors are not being retried when long running operations (e.g. dataproc create_cluster) are polled. Currently, the default retry predicate (retry.py) includes google.api_core.exceptions.ServiceUnavailable, but ...
Open Graph Description: "503 service unavailable" errors are not being retried when long running operations (e.g. dataproc create_cluster) are polled. Currently, the default retry predicate (retry.py) includes google.api_...
X Description: "503 service unavailable" errors are not being retried when long running operations (e.g. dataproc create_cluster) are polled. Currently, the default retry predicate (retry.py) includes g...
Opengraph URL: https://github.com/googleapis/python-api-core/issues/183
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"ServiceUnavailable missing in polling retries","articleBody":"\"503 service unavailable\" errors are not being retried when long running operations (e.g. [dataproc create_cluster](https://googleapis.dev/python/dataproc/latest/dataproc_v1/services.html?highlight=create_cluster#google.cloud.dataproc_v1.services.cluster_controller.ClusterControllerClient.create_cluster)) are polled.\r\n\r\nCurrently, the [default retry predicate (retry.py)](https://github.com/googleapis/python-api-core/blob/ed092271ab94c7ef53c40ce8e73ca2c48e97159c/google/api_core/retry.py#L100) includes `google.api_core.exceptions.ServiceUnavailable`, but the [polling retry predicate (polling.py)](https://github.com/googleapis/python-api-core/blob/ed092271ab94c7ef53c40ce8e73ca2c48e97159c/google/api_core/future/polling.py#L32) overrides the former and doesn't include ServiceUnavailable. This doesn't look intentional: if retry.py considers ServiceUnavailable to be transient and retriable, so should polling.py.\r\n\r\nThis is causing issues for customers: e.g. their Cloud Function crashes during polling when they encounter a single `connection reset`.","author":{"url":"https://github.com/hoonji","@type":"Person","name":"hoonji"},"datePublished":"2021-05-10T08:06:40.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/183/python-api-core/issues/183"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:91d696cd-e48a-e618-be08-8ccef8cafe9e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A942:3029FD:CD7105:1183C78:6A4DCADB |
| html-safe-nonce | 741285b41a70d8d35a758471be9d270d12fc023296cfd92d630c07c3f88426c7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOTQyOjMwMjlGRDpDRDcxMDU6MTE4M0M3ODo2QTREQ0FEQiIsInZpc2l0b3JfaWQiOiI2NjgwNjA5OTE0NTkzNTk0MDc1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 4fd04f68c7249f701f948562d4a43784714dc1ed7a0d7d6e5ccdbcff9f716f8e |
| hovercard-subject-tag | issue:883656213 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/googleapis/python-api-core/183/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0d629df564d2bc3bd1b27791299cb4b67e4d0537edf25c433a372f336a526dd3/googleapis/python-api-core/issues/183 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0d629df564d2bc3bd1b27791299cb4b67e4d0537edf25c433a372f336a526dd3/googleapis/python-api-core/issues/183 |
| og:image:alt | "503 service unavailable" errors are not being retried when long running operations (e.g. dataproc create_cluster) are polled. Currently, the default retry predicate (retry.py) includes google.api_... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | hoonji |
| hostname | github.com |
| expected-hostname | github.com |
| None | 06b8a6144231bf3a234f1c2e9993861e07ce98a905912b114aa386c2d7e84b33 |
| turbo-cache-control | no-preview |
| go-import | github.com/googleapis/python-api-core git https://github.com/googleapis/python-api-core.git |
| octolytics-dimension-user_id | 16785467 |
| octolytics-dimension-user_login | googleapis |
| octolytics-dimension-repository_id | 226992456 |
| octolytics-dimension-repository_nwo | googleapis/python-api-core |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 226992456 |
| octolytics-dimension-repository_network_root_nwo | googleapis/python-api-core |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 1d344bdb7547fe6bca17a59bb2b8aac3dc9532a0 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width