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

[Feature] Fallback and try downloading with aria2 disabled when download fails #5371

Closed
redactedscribe opened this issue Feb 2, 2023 · 3 comments

Comments

@redactedscribe
Copy link

Feature Request

Is your feature request related to a problem? Please describe.

Downloading with aria2 enabled (my preferred default) seems to fail more often lately which requires issuing scoop config aria2-enabled false before successfully downloading problematic apps. Of course, since using aria2 is my preference, the config option must be set to true afterwards.

Describe the solution you'd like

If an app download fails with aria2 enabled, automatically retry the same download but with aria2 temporarily disabled. If there are more than one apps to be updated, the next app should first try with aria2, and then fallback to it being temporarily disabled if that download also fails.

Downloads may fail for more reasons than just aria2 being unable to download it, and I'm not sure if Scoop has a way to determine if the fault lies with the resource or aria2's enabled state, but if the resource is at fault, automatically retrying with aria2 disabled would be a quick fail, whereas if the fault lies with aria2 being enabled, it saves time for the user to have to toggle aria2's config pre and post download.

Describe alternatives you've considered

I'm not sure what other options there are other than keeping aria2 permanently disabled and accepting slower app update speeds.

Perhaps the higher failure rate that I'm experiencing is to do with using the shim config kiennq? I had to set this in the past to overcome an issue with Scoop that I was having but I no longer recall what.

aria2-enabled : True
shim          : kiennq
last_update   : 02/02/2023 16:43:50
scoop_repo    : https://github.com/ScoopInstaller/Scoop
scoop_branch  : master
@rashil2000
Copy link
Member

Duplicate of #4472.

There's a PR for this too #4292

@redactedscribe
Copy link
Author

It seems my efforts to search GitHub issues relating to aria2 were not successful. Sorry about that.

@rashil2000
Copy link
Member

No worries :)

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