Skip to content

Retry GraphQL requests after throttling - #1478

Open
efegokdemir wants to merge 1 commit into
Shopify:mainfrom
efegokdemir:efe/graphql-throttle-retries
Open

efegokdemir wants to merge 1 commit into
Shopify:mainfrom
efegokdemir:efe/graphql-throttle-retries

Conversation

@efegokdemir

Copy link
Copy Markdown

GraphQL throttling errors arrive as HTTP 200 responses, so the existing retry loop treats them as completed requests. This retries THROTTLED responses within the configured tries limit and waits using Shopify's reported cost budget or reset time; the default of one attempt preserves existing behaviour. Resolves #1345. bundle exec rake test (427 tests), bundle exec rake test:rest_wrappers (10,881 tests) and bundle exec rubocop passed. Sorbet could not run because the bundled compiler targets x86_64 and this host is arm64.

This branch has not been deployed

No deployments
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.

GraphQL throttling

1 participant