Closed tbarbugli closed 9 years ago
What about we retry (3 times?) failed requests to APIs?
requests comes with a simple retry mechanism: http://stackoverflow.com/questions/15431044/can-i-set-max-retries-for-requests-request unfortunately retries requests are done immediately after the failure.
perhaps it makes more sense to have retries sleeping an increasing amount of time between each other (eg. 0.5s; 1s; 2s; 4s; 8s; fail)
yes that makes sense, good idea
What about we retry (3 times?) failed requests to APIs?
requests comes with a simple retry mechanism: http://stackoverflow.com/questions/15431044/can-i-set-max-retries-for-requests-request unfortunately retries requests are done immediately after the failure.
perhaps it makes more sense to have retries sleeping an increasing amount of time between each other (eg. 0.5s; 1s; 2s; 4s; 8s; fail)