From 5e54912ada55fa05cdca645584a185ed465c6389 Mon Sep 17 00:00:00 2001 From: maxibor Date: Fri, 25 Oct 2019 14:08:02 +0200 Subject: [PATCH] add queue choice --- conf/shh.config | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/conf/shh.config b/conf/shh.config index 5cb3396..c23d331 100644 --- a/conf/shh.config +++ b/conf/shh.config @@ -14,7 +14,14 @@ singularity { process { executor = 'slurm' - queue = 'short' + switch(task.time){ + case {it < 2.h}: + queue = 'short' + case {it > 2.h && it < 48.h}: + queue = 'medium' + case {it > 48.h}: + queue = 'long' + } } executor {