Skip to content

Feature request: Retry request on fail #57

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

Open
drewbaker opened this issue Oct 11, 2023 · 1 comment
Open

Feature request: Retry request on fail #57

drewbaker opened this issue Oct 11, 2023 · 1 comment

Comments

@drewbaker
Copy link
Contributor

I know that the point of GQL request is to be very simple, so maybe this is not within scope... but man I'd love retry to be built into this module!

Something like this:

  graphql: {
    clients: {
      default: {
          retry: {
            attempts: 3,
            delay: 1000         
          }
      }
    }
}    

And when the request fails for any reason, it waits 1000 between each retry 3 times, before really failing.

The thing is, I actually really want these for some old Nuxt2 projects that fail SSG builds due to a slow-to-scale API.

@Gomah
Copy link
Owner

Gomah commented Aug 20, 2024

It's coming soon, currently in alpha: graffle-js/graffle#878

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

No branches or pull requests

2 participants