Repository navigation
[stable9.1] Enable GDrive retries and backoff for rate limit - #27530
Conversation
Makes it possible to still get successful calls after delayed retries when hitting the API limits.
|
@PVince81, thanks for your PR! By analyzing the history of the files in this pull request, we identified @MTGap, @AdamWill, @icewind1991 and @Xenopathic to be potential reviewers. |
|
@davitol hmm, that's possibly because for each PHP request it will redo the backoff dance: fire a lot of requests, get the errors, then slow down, try again, slow down, etc. Instead of settling on a request speed and reuse it for every request. That's unfortunately a limitation of the library. |
|
I guess slow sync is still an improvement over lots of errors ? It sounds like we'll eventually need to write our own library... or reimplement exponential backoff in a way that works more efficiently 😦 |
|
IMO it is better this approach than the one with errors, but It should not be the definitive solution. |
|
master: 776f031 |
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |

Makes it possible to still get successful calls after delayed retries
when hitting the API limits.
To test:
for I in $(seq 1 200); do echo "test" > file$I.txt; doneBefore the fix: lots of API rate limit errors.
After the fix: lots more successes and rare API limit errors
Please review @jvillafanez @butonic @davicente
Backports: