mirror of
https://github.com/MillironX/nf-configs.git
synced 2024-11-24 17:19:54 +00:00
cbe: dynamic qos logic
This commit is contained in:
parent
28cd84d44a
commit
123f199b68
1 changed files with 6 additions and 16 deletions
|
@ -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'
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue