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

Improve download #346

Merged
merged 1 commit into from
Feb 5, 2024

Conversation

JureZmrzlikar
Copy link
Member

No description provided.

@JureZmrzlikar
Copy link
Member Author

There are issues with some of the downloads (e.g. HTML fields, e.g. output in multiQC process). The locally computed md5 checksum and the one received from the server are different. Will try to investigate and resolve that with @gregorjerse .

# checksums that are difficult to reproduce here.
return
expected_md5 = checksums[file_directory][file_name]
computed_md5 = md5(os.path.join(download_dir, file_path, file_name))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be more efficient to integrate md5 checksum computation in the download process and compute it for each downloaded chunk.

However, computing it after the file is written to disk also captures disk write errors (or, in case of BCM, NFS errors).

@JureZmrzlikar JureZmrzlikar merged commit 11fa8d9 into genialis:master Feb 5, 2024
9 checks passed
@JureZmrzlikar JureZmrzlikar deleted the fortify-file-download branch February 9, 2024 12:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants