From 123f199b68ff287afacb2e6a3d3fb3078c3ae81f Mon Sep 17 00:00:00 2001 From: phue Date: Sun, 27 Oct 2019 20:44:08 +0100 Subject: [PATCH] cbe: dynamic qos logic --- conf/cbe.config | 22 ++++++---------------- 1 file changed, 6 insertions(+), 16 deletions(-) diff --git a/conf/cbe.config b/conf/cbe.config index c303f92..aed9866 100755 --- a/conf/cbe.config +++ b/conf/cbe.config @@ -8,25 +8,15 @@ params { process { executor = 'slurm' module = 'singularity/3.2.1' - queue = 'c' + queue = { task.memory <= 170.GB ? 'c' : 'm' } + clusterOptions = { task.time <= 8.h ? '--qos short': task.time <= 48.h ? '--qos medium' : '--qos long' } } singularity.enabled = true params { - target_qos = 'medium' - params.max_cpus = 36 - params.max_memory = 170.GB - igenomesIgnore = true -} - -if (params.target_qos == 'short') { - params.max_time = 8.h - process.clusterOptions = '--qos short' -} else if (params.target_qos == 'medium') { - params.max_time = 2.d - process.clusterOptions = '--qos medium' -} else { params.max_time = 14.d - process.clusterOptions = '--qos long' -} + params.max_cpus = 36 + params.max_memory = 4.TB + igenomesIgnore = true +} \ No newline at end of file