Skip to content

Conversation

@romeara
Copy link

@romeara romeara commented Nov 11, 2021

During a recent attempt to plan maintenance for the binary repository backing sig-repo, it was determined that retry-less client behavior is complicating the ability to patch and maintain the system.

This pull request proposes the addition of basic retry logic - there are many options which can alter the behavior of the default retry. Note that --fail must be added if retry on 404 is desired (which will depend on sig-repo's behavior when down).

It might also be appropriate to setup the ability to disable or override the retry behavior via environment variable, similar to the base DETECT_CURL_OPTS setup.

Aside from determinations on what the default behavior should be, another addition that would be appropriate would be similar support in the powershell script (which based on surface research seems slightly more involved, and being unfamiliar with PS I decided would be better to exclude and allow someone better-versed to provide)

Make it possible to override/disable retry behavior easily via environment variable, and add default backoff and maximum time values
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants