PatrickWeller / PanelPal

1 stars 0 forks source link

Edit rate-limiting function #63

Open RVel37 opened 1 week ago

RVel37 commented 1 week ago

Find out rate limit for servers as outlined in their documentation and adjust code according to this.

RVel37 commented 1 day ago

Found the code for VariantValidator's rate limiting function here: https://github.com/openvar/rest_variantValidator/commit/32d9b9d61a601a5b19771404bdb5ec5def34a168#diff-3c7479596660fb675385a60693e4104b8bde8341b05e3406fa08971b320093c0R29

I adjusted our rate limiting function to wait at the upper limit of the range specified in the code (2 seconds) to minimise the number of retries needed.