Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(gateway): Resolve gateway retry issues (port #1503) (main) #1504

Merged
merged 1 commit into from
Feb 10, 2022

Conversation

trevor-scheer
Copy link
Member

Forward port of #1503

…update...`) (`version-0.x`) (#1503)

The current gateway supergraph fetch retry logic doesn't
handle the `null` case correctly. It treats `null` as a
retry-able result, when it's actually the most common case
(meaning no schema change).

In the failure case we now throw the most frequently occurring
error (via the `async-retry`).

This also introduces the `async-retry` package which nicely
wraps the retry logic for us and manages exponential backoff.
@codesandbox-ci
Copy link

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

@trevor-scheer trevor-scheer merged commit f8f198f into main Feb 10, 2022
@trevor-scheer trevor-scheer deleted the trevor/port-1503 branch February 10, 2022 21:49
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