Skip to content

feat: retry request if api returns a 429 when precaching nodes#90

Merged
G-Rath merged 1 commit into
mainfrom
support-retrying
Jun 25, 2025
Merged

feat: retry request if api returns a 429 when precaching nodes#90
G-Rath merged 1 commit into
mainfrom
support-retrying

Conversation

@G-Rath

@G-Rath G-Rath commented Jun 23, 2025

Copy link
Copy Markdown
Collaborator

We've had a couple of our (re)generation runs fail when precaching the Drupal nodes due to 429s - we might as well include a basic "retry once" attempt to help avoid this. While it's possible this could happen for any API request it should be very unlikely except for this one which is why I've not changed them.

In the long-run if this becomes more regular (or requested by the Drupal team) we'll probably move to a more dedicated HTTP client implementation to handle this across the board

@G-Rath G-Rath force-pushed the support-retrying branch 2 times, most recently from 3c3a956 to 7ed7d7a Compare June 23, 2025 20:59

@nzlaura nzlaura left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Seems like a sensible approach

@G-Rath G-Rath force-pushed the support-retrying branch from 7ed7d7a to 6d55485 Compare June 24, 2025 19:03
@G-Rath G-Rath merged commit 975bc6b into main Jun 25, 2025
8 checks passed
@G-Rath G-Rath deleted the support-retrying branch June 25, 2025 02:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants