From 205f253fd4c12d1a8f47132260eda223af6384d9 Mon Sep 17 00:00:00 2001 From: Erin Young Date: Thu, 9 May 2024 11:13:02 -0600 Subject: [PATCH] added time increase for task.attempt --- nextflow.config | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/nextflow.config b/nextflow.config index 0e768a0..584364d 100644 --- a/nextflow.config +++ b/nextflow.config @@ -4,7 +4,7 @@ manifest { author = 'Erin Young' homePage = 'https://github.com/UPHL-BioNGS/Donut_Falls' description = "De novo assembly of long-reads" - version = '1.5.20240505' + version = '1.6.20240510' nextflowVersion = '!>=22.10.1' defaultBranch = 'main' } @@ -39,17 +39,17 @@ dag.enabled = true process { maxRetries = 1 maxErrors = '-1' - //errorStrategy = { task.attempt < 2 ? 'retry' : 'ignore'} + errorStrategy = { task.attempt < 2 ? 'retry' : 'ignore'} withLabel:process_single { cpus = { 1 } memory = { 6.GB } - time = { 30.m } + time = { 30.m * task.attempt} } withLabel:process_low { cpus = { 2 } memory = { 12.GB } - time = { 2.h } + time = { 2.h * task.attempt } } withLabel:process_medium { cpus = { 6 }