Skip to content

Adds optional auto-retry on Buildkite API rate limit (429)#51

Open
peerkleio wants to merge 1 commit intoShopify:mainfrom
peerkleio:pa/add-rate-limit
Open

Adds optional auto-retry on Buildkite API rate limit (429)#51
peerkleio wants to merge 1 commit intoShopify:mainfrom
peerkleio:pa/add-rate-limit

Conversation

@peerkleio
Copy link
Copy Markdown

Add support for Rate-limit auto-retries based on the Buildkite documentation

By default, auto-retry is disabled and needs to be set to true to be used. In addition a rate_limit_retry_count argument to limit the number of retries. This defaults to 3.

Adds RateLimitExceeded error and maps status 429.
Client now supports  (default off) and configurable
, retrying after  seconds.
Includes unit tests covering error mapping and retry behaviour.
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.

1 participant