Custom retry codes for `@actions/http-client`
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 5.9k
- Forks
- 1.8k
- PR merge metrics
- No merged PRs in 30d
Description
We use the @actions/http-client to be able to easily retry http requests on failed requests.
The problem is that currently only 502, 503 and 504 are retried, but in our implementation we also need 500 to be retried.
I want to propose a mechanism where retry codes can be added or removed by the user by appending the RequestOptions with retryOnCodes and noRetryOnCodes to have the full controll on what statuscodes should be retried and not.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the @actions/http-client RequestOptions definition and the current retry-status handling, then inspect any existing retry tests. Done means callers can configure added and suppressed retry status codes, including retrying 500, with the behavior covered by tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- api
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100