developmentseed / developmentseed/titiler-cmr
Replace utils.retry with more robust retry implementation
Open
- Dominant language
- Python
- Stars
- 25
- Forks
- 9
- Avg merge
- 1d 6m
- Merged PRs (30d)
- 1
Description
The `retry` function in `utils.py` is overly simplistic. It does not support exponential backoff nor jitter, so it should be replaced with a more robust implementation, which can be found in libraries such as [tenacity](https://tenacity.readthedocs.io/en/latest/).
We might even be able to leverage something other than tenacity (or similar), given that we are aiming to [eliminate our dependence on earthaccess](https://github.com/developmentseed/titiler-cmr/issues/74), which might allow us to more directly make requests via httpx or aiohttp, which have related packages for retrying requests.
Contributor guide
Assessment
This issue has not been assessed yet.