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
Circumvent the rate limits on the API requests #65
Conversation
Signed-off-by: Akashdeep Dhar <akashdeep.dhar@gmail.com>
Here's a test where I set the rate limit of the API requests to 5. If you like those colours, this is how it would end up looking like. Here's the colourless variant otherwise.
While you are free to review this pull request, please note that I have yet to write some test cases for the newly added functionality so this pull request cannot be merged yet. |
451d290
to
7d3beeb
Compare
Signed-off-by: Akashdeep Dhar <akashdeep.dhar@gmail.com>
This stalls the transfer for the time period proposed in the standard configuration (which is 60 by default) and resets the index counter to 0 when it reaches the amount proposed in the standard configuration (which is 500 by default) Signed-off-by: Akashdeep Dhar <akashdeep.dhar@gmail.com>
For any HTTP request of type POST or PUT, the index counter is incremented by 1 to ensure that the attempts are kept track of to compare against the maximum possible number of attempts required to break the rate limit on the API requests Signed-off-by: Akashdeep Dhar <akashdeep.dhar@gmail.com>
Also removed a stray `print()` command that I previously added for debugging Signed-off-by: Akashdeep Dhar <akashdeep.dhar@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello @gridhead 👋
Thanks for working on this. verified most of the files consists of license description renaming which is good; otherwise the callwait functions seems right to me along with a supported testcase, so here's my +1 to this.
Signed-off-by: Akashdeep Dhar <akashdeep.dhar@gmail.com>
Apart from a couple of hiccups in between (reported in #66 and #67), my attempt to transfer issue tickets of all states (irrespective of OPEN or SHUT) along with their comments and states from the Here are some tickets to confirm the success of such a long-winded transfer https://gitlab.com/gridhead/protop2g-test/-/issues/3609, https://gitlab.com/gridhead/protop2g-test/-/issues/3606, https://gitlab.com/gridhead/protop2g-test/-/issues/3603, https://gitlab.com/gridhead/protop2g-test/-/issues/3600, https://gitlab.com/gridhead/protop2g-test/-/issues/3557, https://gitlab.com/gridhead/protop2g-test/-/issues/3554 and https://gitlab.com/gridhead/protop2g-test/-/issues/3551. Here's the complete result. Here's where it is shown that the tool takes a pause for 60 seconds after having made 195 requests before continuing on to do some more. |
Thanks for the review, @samyak-jn! |
Circumvent the rate limits on the API requests
Circumvent the rate limits on the API requests
Fixes #10, #33 and #60