Skip to content
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

Automatic Retry for Download Failures with Backoff Strategy #287

Closed
joulei opened this issue Oct 28, 2024 · 1 comment
Closed

Automatic Retry for Download Failures with Backoff Strategy #287

joulei opened this issue Oct 28, 2024 · 1 comment

Comments

@joulei
Copy link
Collaborator

joulei commented Oct 28, 2024

Problem

Currently, when a download fails in Moly, users are shown an error message with a button to retry manually. This requires user intervention and doesn’t account for temporary network issues or other transient errors (specially annoying for big downloads when using VPNs).

Proposed Solution

Implement an automatic retry mechanism for failed downloads. This feature should include the following:

  1. Retry Attempts:
    Attempt to retry failed downloads automatically up to 3 times.
  2. Backoff Strategy:
    Introduce increasing wait times between retries. Suggested intervals are:
    • 15 seconds before the first retry.
    • 30 seconds before the second retry.
    • 60 seconds before the final retry.
  3. User Feedback:
    Update the error popup during each retry attempt to display a message like “Retrying in X seconds.” This will provide clear feedback to the user on the current retry status.
  4. Final State
    If all retries fail, the app should revert to the standard error message with a retry button, allowing the user to manually intervene if needed.
@Guocork
Copy link
Collaborator

Guocork commented Oct 30, 2024

@joulei Hello,I’ve completed this issue and tested it,it works fine. #289

However, due to some timing issues with the cx.start_timeout on Linux, it hasn’t met the expected results yet. You might need to fix the problem on Makepad first.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants