vanvalenlab / kiosk-imageJ-plugin

An ImageJ Plugin for interacting with the DeepCell Kiosk
Other
3 stars 2 forks source link

Retry HTTP requests up to MAX_HTTP_RETRIES times using RetryInterceptor. #36

Closed willgraf closed 3 years ago

willgraf commented 3 years ago

okhttp3 uses Interceptors to manage request retries, retries, and the like.

This PR introduces a new RetryInterceptor that will retry any failed request up to MAX_HTTP_RETRIES times. Several tests have been updated to enqueue more failure responses to ensure that the retries are exhausted.

Fixes #33