Skip to content

Commit

Permalink
update retry strategy to allow 2 retries then ignore; update params.m…
Browse files Browse the repository at this point in the history
…ax_memory to allow for up to 220GB (>3x72.GB) with 3rd process_high retry
  • Loading branch information
jessicaw9910 committed Jul 25, 2024
1 parent b2b7783 commit c949564
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion nextflow/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
----------------------------------------------------------------------------------------
*/

params.max_memory = "100.GB"
// allow 2 retries; process_high: 72.GB * task.attempt = 216.GB
params.max_memory = "220.GB"
params.max_cpus = 12

// sub-directories - only FastQC needs additional sub-dir
Expand Down
6 changes: 4 additions & 2 deletions nextflow/nextflow.config
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,10 @@ process {
memory = { check_max( 6.GB * task.attempt, 'memory' ) }
time = { check_max( 4.h * task.attempt, 'time' ) }

errorStrategy = { task.exitStatus in ((130..145) + 104) ? 'retry' : 'finish' }
maxRetries = 1
// https://github.com/nextflow-io/nextflow/issues/563
errorStrategy = { ( task.attempt <= process.maxRetries ) ? 'retry' : 'ignore' }
// errorStrategy = { task.exitStatus in ((130..145) + 104) ? 'retry' : 'finish' }
maxRetries = 2
maxErrors = '-1'

withLabel:process_single {
Expand Down

0 comments on commit c949564

Please sign in to comment.