Skip to content

feat(compute/metadata): retry on HTTP 429#12932

Merged
shollyman merged 1 commit intogoogleapis:mainfrom
shollyman:retry-metadata
Sep 22, 2025
Merged

feat(compute/metadata): retry on HTTP 429#12932
shollyman merged 1 commit intogoogleapis:mainfrom
shollyman:retry-metadata

Conversation

@shollyman
Copy link
Copy Markdown
Contributor

Per https://cloud.google.com/compute/docs/troubleshooting/troubleshoot-metadata-server#rate-limited-endpoints the metadata package should allow retry on HTTP 429 to address ratelimit pushback. This PR augments the retry predicate to include HTTP 429 as retryable status.

internal: b/445054278

fixes: #12929

Per https://cloud.google.com/compute/docs/troubleshooting/troubleshoot-metadata-server#rate-limited-endpoints
the metadata package should allow retry on HTTP 429 to address ratelimit
pushback.  This PR augments the retry predicate to include HTTP 429 as
retryable status.

internal: b/445054278
@shollyman shollyman requested review from a team, codyoss and quartzmo September 22, 2025 18:19
@product-auto-label product-auto-label bot added the api: compute Issues related to the Compute Engine API. label Sep 22, 2025
@shollyman shollyman merged commit 1e91f5c into googleapis:main Sep 22, 2025
9 checks passed
@shollyman shollyman deleted the retry-metadata branch September 22, 2025 19:13
@release-please release-please bot mentioned this pull request Sep 22, 2025
quartzmo pushed a commit that referenced this pull request Sep 24, 2025
🤖 I have created a release *beep* *boop*
---


<details><summary>compute/metadata: 0.9.0</summary>

##
[0.9.0](compute/metadata/v0.8.4...compute/metadata/v0.9.0)
(2025-09-24)


### Features

* **compute/metadata:** Retry on HTTP 429
([#12932](#12932))
([1e91f5c](1e91f5c))
</details>

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: compute Issues related to the Compute Engine API.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

compute/metadata: retry on 429

2 participants