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

fix error handling #19

Merged
merged 3 commits into from
May 9, 2024
Merged

fix error handling #19

merged 3 commits into from
May 9, 2024

Conversation

bluegenes
Copy link
Collaborator

@bluegenes bluegenes commented May 9, 2024

  • In v0.2.1, if we encounter an issue with the md5sum file download, the error handling loop would cause us to hang / not continue to process sigs.
  • This fixes the issue by introducing an error_handler to receive errors and notify as we go.
  • because we can't bail from within the error_handler, I introduce and AtomicBool to monitor whether we need to bail because we expected sigs but didn't end up writing any

I just ran this on 95k protein downloads, and it took 2h54mins and 12GB of RAM

cat /home/ntpierce/database-releases/gtdb-rs214.protein/logs/gtdb-rs214.protein.download_and_sketch_missing.benchmark

s	h:m:s	max_rss	max_vms	max_uss	max_pss	io_in	io_out	mean_load	cpu_time
10476.4868	2:54:36	445.03	12946.43	456.79	457.60	86.62	25.43	1.27	133.17

@bluegenes bluegenes merged commit 835b039 into main May 9, 2024
1 check failed
@bluegenes bluegenes deleted the err-handling branch July 15, 2024 18:48
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.

1 participant