fiftyone
fiftyone copied to clipboard
[FR] Add retries for CVAT requests
When making calls to the CVAT REST API, some of the requests can raise errors due to server issues requiring methods like dataset.annotate() and dataset.load_annotations() to be run multiple times before succeeding. These calls should be retried on certain failures to avoid needing to manually rerun these methods.
This PR was a first attempt at introducing these retries, but has an issue in that it wraps request calls that are used in a lot of places and can raise a variety of different errors that may need to be handled differently.