Skip to content

Wait for a few minutes and retry download #9882

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

Open
Darksonn opened this issue Sep 8, 2021 · 2 comments
Open

Wait for a few minutes and retry download #9882

Darksonn opened this issue Sep 8, 2021 · 2 comments
Labels
A-networking Area: networking issues, curl, etc. C-feature-request Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted` S-triage Status: This issue is waiting on initial triage.

Comments

@Darksonn
Copy link

Darksonn commented Sep 8, 2021

Describe the problem you are trying to solve

Sometimes our CI setup on Tokio fails to download a dependency five times in a row and the build fails. Re-running it a few minutes later seems to fix it.

Describe the solution you'd like

Add an option or similar that tells cargo to sleep for a few minutes and retry again later if the download fails after retrying five times.

Notes

Cargo will currently retry a few times, which was implemented as part of #1602.

@Darksonn Darksonn added the C-feature-request Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted` label Sep 8, 2021
@ehuss ehuss added the A-networking Area: networking issues, curl, etc. label Sep 11, 2021
@dswij
Copy link
Member

dswij commented Sep 20, 2021

Although having a backoff mechanism for retry is handy such as the one implemented in curl, I'm not too convinced of having another retry after a series of retries after some time period 😕 .

In the context of CI, if backoff does not suits the purpose, perhaps there could be a separate job for downloading dependencies and have a script to retry the job after a certain time period if it fails?

@Darksonn
Copy link
Author

Backoff sounds like a fine solution to me.

@epage epage added the S-triage Status: This issue is waiting on initial triage. label Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-networking Area: networking issues, curl, etc. C-feature-request Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted` S-triage Status: This issue is waiting on initial triage.
Projects
None yet
Development

No branches or pull requests

4 participants