1
0
Fork 0
mirror of https://github.com/MillironX/nf-configs.git synced 2024-11-14 05:33:09 +00:00

Merge pull request #76 from phue/cbe_dynamic

cbe: dynamic qos logic
This commit is contained in:
Patrick Hüther 2019-10-28 11:23:23 +01:00 committed by GitHub
commit 8e5cc7838c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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_time = 14.d
params.max_cpus = 36
params.max_memory = 170.GB
params.max_memory = 4.TB
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'
}