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

[WIP] Enabling a complex query retry if memory on the cluster is insufficient #46

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions workflow/workflow.nf
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,14 @@ params.PYTHONRUNTIME = "python" // this is a hack because CCMS cluster does not

if(params.parallel_files == "YES"){
process queryData {
errorStrategy 'ignore'
//errorStrategy 'ignore'
time '2h'
//maxRetries 3
//memory { 6.GB * task.attempt }
memory { 8.GB }

// This enable multiple retries with increasing ram, and if this all fails, lets retire it
// https://github.com/nextflow-io/nextflow/issues/563
maxRetries 3
errorStrategy { (task.exitStatus in 137..140 && task.attempt <= maxRetries) ? 'retry' : 'ignore' }
memory { 8.GB + 12.G * task.attempt }

publishDir "$params.publishdir/msql", mode: 'copy'

Expand Down