1
0
Fork 0
mirror of https://github.com/MillironX/nf-configs.git synced 2024-11-22 00:26:03 +00:00

cbe: dynamic qos logic

This commit is contained in:
phue 2019-10-27 20:44:08 +01:00
parent 28cd84d44a
commit 123f199b68

View file

@ -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
}