From c5de9f35f49dbec1e55dc4c1dbef479282ddb56b Mon Sep 17 00:00:00 2001 From: Niklas Schandry Date: Wed, 27 Aug 2025 10:56:17 +0200 Subject: [PATCH] Fix thread limit Types are hard.. --- modules/nf-core/links/main.nf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/nf-core/links/main.nf b/modules/nf-core/links/main.nf index c55bc661e270..3e3ee19cdcb4 100644 --- a/modules/nf-core/links/main.nf +++ b/modules/nf-core/links/main.nf @@ -30,7 +30,8 @@ process LINKS { script: def prefix = task.ext.prefix ?: "${meta.id}" // Currently LINKS does not support more than 4 threads - def nthreads = "${task.cpus}" < 4 ? "${task.cpus}" : 4 + def ncpu = "${task.cpus}".toInteger() + def nthreads = ncpu < 4 ? ncpu : 4 def args = task.ext.args ?: "" """ if [[ ${assembly} == *.gz ]];