terraform-provider-restapi icon indicating copy to clipboard operation
terraform-provider-restapi copied to clipboard

Retry on errors with specified HTTP methods

Open nvelat opened this issue 6 years ago • 2 comments

Supersedes PR: https://github.com/Mastercard/terraform-provider-restapi/pull/36 Issue: https://github.com/Mastercard/terraform-provider-restapi/issues/34

Allow the user to specify a list of HTTP methods to retry requests on if a status code in the range [500, 600] is received.

nvelat avatar Jun 18 '19 22:06 nvelat

Thanks, @nvelat! I know this was created in reference to #34 which was just fixed (creating the merge conflict), but I see the community desire for retry logic aside from that issue. Can you share a few scenarios in this PR that retry logic would be helpful?

A quick thought is that if we are going to go as far as enabling retry logic, we should also let the user configure a cooldown timer and decide which status codes should be retried as well. Just hoping to get the reasonably expected scenarios covered...

DRuggeri avatar Jul 05 '19 21:07 DRuggeri

This looks excellent.

oferchen avatar Feb 02 '23 09:02 oferchen