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

Change RPS on the fly #48

Open
martingalovic opened this issue Dec 29, 2021 · 0 comments
Open

Change RPS on the fly #48

martingalovic opened this issue Dec 29, 2021 · 0 comments

Comments

@martingalovic
Copy link

Hey,

is it possible to change the maxRPS on the fly?

I'm trying to:

  • Launch 10,000 requests
  • When one of the response returns response.data.length === 0 (response is empty) I want to cancel all other requests (using axios CancelToken)
  • I use client.setMaxRPS(100000) before calling cancelToken.cancel()
  • But canceling still uses rate limit

Is it possible to change the RPS so the tokens get canceled faster / immediately?

Or do you guys suggest some simpler solution?

Thanks!

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

1 participant