SeriousBug/gandi-live-dns-rust

More aggresively retry failures caused by network issues or 500 level errors

SeriousBug opened this issue · 0 comments

Right now, if a request fails and gandi-live-dns was running in repeat mode, it will be retried. But the wait between the attempts in repeat mode may be too high, causing long delays in the IP address being updated. This also doesn't help when running in oneshot mode.

Instead, gandi-live-dns should immediately retry failed requests. The retry mechanism should include exponential backoff to avoid hitting the server too hard, and should continue to respect the rate limit as if the requests were successful. It should give up after a configurable number of retries.