-
Notifications
You must be signed in to change notification settings - Fork 155
MM-38701: Automatically retry on a failed export download #524
Conversation
We had a resume functionality which would download the file again from a given offset. But clients would create wrapper scripts which would auto-retry. Therefore, we add that functionality in-built and deprecate the resume flag. The reasoning behind removing the flag is that if it doesn't succeed within 5 tries, then probably it's better to attempt to download the file from scratch again sometime later. https://mattermost.atlassian.net/browse/MM-38701
Wouldn't it make sense to make the number of retries configurable. I can imaging people with an unstable internet connection wanting to retry it more often. Maybe even interpret a negative number as infinite retries. |
That makes more sense. I'll make the changes. |
@noxer - PTAL |
Does the initial attempt count as a retry? It's a bit ambiguous but in this case |
Heh good point, will update. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, have some styling comments below 👇
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks good. Thank you.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
We had a resume functionality which would download the file
again from a given offset. But clients would create wrapper
scripts which would auto-retry.
Therefore, we add that functionality in-built and deprecate
the resume flag. The reasoning behind removing the flag is that
if it doesn't succeed within 5 tries, then probably it's better
to attempt to download the file from scratch again sometime later.
https://mattermost.atlassian.net/browse/MM-38701