-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Retry list/download operation depending on the HTTP response #300
Comments
retries with exponential backoff sound like a good idea! |
I am not sure that this feature should be embed in tenv code base, however you can use the tenvlib package to manage this kind of use case. |
Any argument as to why? I'm guessing 90%+ usage of |
a good retry mecanism for a CLI usage ? I don't get your point, the user can lauch the command again in case of network/server temporary failure why does it worth the cost of increasing maintenance effort ? |
|
Again, I think that could become a lot of work for a small benefit |
Points 1 and 2 are perhaps easy for a human for interpret, but for automation it is harder. Did For point 3, if you believe it is too much complexity for I think there is a lot of value here. I believe you are mostly considering the use case of humans directly interacting with That being said, how does this ticket end? Is there further discussion to be had or is the decision made, in which case we can close the ticket? |
Is your feature request related to a problem? Please describe.
We are hosting our own LIST and DOWNLOAD proxies and sometimes an operation might fail due to a temporary problem, for example a 502 or a connection failure in the case of a transient network hiccup. As far as I have seen, tenv does not support this, or at least it does not expose environment variables to configure the behaviour.
Describe the solution you'd like
For our own software we support a few retries with exponential backoff. We have found this works for us, depending on the failure case. I think the ability to do this and configure it via env variables would be useful.
Describe alternatives you've considered
We considered executing the
install
ourselves and retrying if it fails however the interface we provide to users is meant to not know they are using tenv underneath, they just calltofu
, so it is not necessarily feasible to ensure an install is done prior to the execution because we do not know when a customer will issue the command.Additional context
The text was updated successfully, but these errors were encountered: