mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-11-11 04:33:10 +00:00
ea41c753c0
Call gets retried by bash script
26 lines
910 B
Text
26 lines
910 B
Text
process SRATOOLS_PREFETCH {
|
|
tag "$id"
|
|
label 'process_low'
|
|
|
|
conda (params.enable_conda ? 'bioconda::sra-tools=2.11.0' : null)
|
|
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
|
'https://depot.galaxyproject.org/singularity/sra-tools:2.11.0--pl5321ha49a11a_3' :
|
|
'quay.io/biocontainers/sra-tools:2.11.0--pl5321ha49a11a_3' }"
|
|
|
|
input:
|
|
tuple val(meta), val(id)
|
|
|
|
output:
|
|
tuple val(meta), path(id), emit: sra
|
|
path "versions.yml" , emit: versions
|
|
|
|
when:
|
|
task.ext.when == null || task.ext.when
|
|
|
|
shell:
|
|
args = task.ext.args ?: ''
|
|
args2 = task.ext.args2 ?: '5 1 100' // <num retries> <base delay in seconds> <max delay in seconds>
|
|
config = "/LIBS/GUID = \"${UUID.randomUUID().toString()}\"\\n/libs/cloud/report_instance_identity = \"true\"\\n"
|
|
|
|
template 'retry_with_backoff.sh'
|
|
}
|