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

Update error codes for retrying SPAdes #355

Merged
merged 3 commits into from
Nov 25, 2022
Merged

Update error codes for retrying SPAdes #355

merged 3 commits into from
Nov 25, 2022

Conversation

mglubber
Copy link
Contributor

@mglubber mglubber commented Nov 17, 2022

Spades can also raise error 21 if it fails due to lack of memory. Currently, this is not caught in ErrorStrategy, so it won't automatically retry with more memory. I've added error 21 to the error code list so that it will be included

Relevant error code information:

Counting (kmer_data.cpp : 349) The reads contain too many k-mers to fit into available memory. You need approx. 68.1699GB of free RAM to assemble your dataset

  == Error ==  system call for: "['/usr/local/bin/spades-hammer', 'spades/corrected/configs/config.info']" finished abnormally, OS return value: 21

PR checklist

  • This comment contains a description of changes (with reason).
  • If you've fixed a bug or added code that should be tested, add tests!
    • If you've added a new tool - have you followed the pipeline conventions in the contribution docs
    • If necessary, also make a PR on the nf-core/mag branch on the nf-core/test-datasets repository.
  • Make sure your code lints (nf-core lint).
  • Ensure the test suite passes (nextflow run . -profile test,docker --outdir <OUTDIR>).
  • Usage Documentation in docs/usage.md is updated.
  • Output Documentation in docs/output.md is updated.
  • CHANGELOG.md is updated.
  • README.md is updated (including new tool citations and authors/contributors).

Spades can also raise error 21 if it fails due to lack of memory during spades-hammer. Currently, this is not caught in the ErrorStrategy, so it won't automatically retry with more memory.

Relevant error code:
Counting (kmer_data.cpp : 349) The reads contain too many k-mers to fit into available memory. You need approx. 68.1699GB of free RAM to assemble your dataset

  == Error ==  system call for: "['/usr/local/bin/spades-hammer', 'spades/corrected/configs/config.info']" finished abnormally, OS return value: 21
@mglubber mglubber changed the title Dev Update error codes for retrying SPAdes Nov 17, 2022
@github-actions
Copy link

github-actions bot commented Nov 18, 2022

nf-core lint overall result: Passed ✅ ⚠️

Posted for pipeline commit eff45ab

+| ✅ 156 tests passed       |+
#| ❔   1 tests were ignored |#
!| ❗   1 tests had warnings |!

❗ Test warnings:

  • pipeline_todos - TODO string in methods_description_template.yml: #Update the HTML below to your prefered methods description, e.g. add publication citation for this pipeline

❔ Tests ignored:

  • files_unchanged - File ignored due to lint config: lib/NfcoreTemplate.groovy

✅ Tests passed:

Run details

  • nf-core/tools version 2.6
  • Run at 2022-11-18 08:04:23

Copy link
Collaborator

@d4straub d4straub left a comment

Choose a reason for hiding this comment

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

Hello there,
thanks for the fix, looks good to me!
You are welcome to merge the PR once the tests successfully finished.

@mglubber
Copy link
Contributor Author

Hi - it looks like everything passed, but I don't think I have permissions to merge the PR

@jfy133 jfy133 merged commit 07b4985 into nf-core:dev Nov 25, 2022
@jfy133
Copy link
Member

jfy133 commented Nov 25, 2022

As I have the power (boom, exploding fire hydrant)

@jfy133 jfy133 mentioned this pull request Feb 27, 2023
10 tasks
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.

3 participants