render-oss / terraform-provider-render

Source code for the official Render Terraform provider
40 stars 4 forks source link

Respect rate limit #33

Closed mdbenjam closed 1 week ago

mdbenjam commented 2 weeks ago

This change ensures we respect the rate limit coming back from the API, to do this we:

  1. Check calls to see if they return a 429
  2. If so, we wait for the time in the RetryAfter header if it exists, then try again
  3. If we still fail or do not receive a RetryAfter header, then we attempt an exponential backoff
linear[bot] commented 2 weeks ago

CAP-5066 Terraform hitting rate limits