NBISweden / NBISweden/sda-cli

Automatic retrying for downloads

Open
#613 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
6
Forks
1
Avg merge
5d 23h
Merged PRs (30d)
3

Description

Please describe the feature

I noticed that the download sometimes fails for arbitrary networking reasons like "unexpected end of file". When retrying, for me at least, they didnt reappear. I wrapped the download command into a short python script that retries if an error occurs with an updated download file list. (It compares a txt of to download files with the actual data present on disk, if there are duplicates they get removed from the file, since the -continue flag doesnt save much time.)

It would be useful if the automatic retrying was integrated into the program itself, since especially for large datasets noticing that such an error occured and that the download terminated costs a lot of time.

Task

Add retry-loop to the sda-cli download command.

Estimation of size: small

Estimation of priority: low

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the sda-cli download command entry point and inspect how download errors and the input file list are currently handled. The work is complete when transient download failures are retried automatically and the command can finish downloading the requested data without manual reruns.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli, networking
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.