Skip to content

Commit

Permalink
added errorStrategy
Browse files Browse the repository at this point in the history
  • Loading branch information
erinyoung committed Jun 26, 2024
1 parent b596fe0 commit d46878d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/local/mykrobe.nf
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ process mykrobe {
errorStrategy { task.attempt < 2 ? 'retry' : 'ignore'}

input:
tuple val(meta), file(contigs), val(flag)
tuple val(meta), file(contigs)

output:
path "mykrobe/*.csv", emit: collect
Expand All @@ -17,7 +17,7 @@ process mykrobe {
path "versions.yml", emit: versions

when:
(task.ext.when == null || task.ext.when) && flag =~ 'found'
(task.ext.when == null || task.ext.when)

shell:
def args = task.ext.args ?: ''
Expand Down

0 comments on commit d46878d

Please sign in to comment.