1
0
Fork 0
mirror of https://github.com/MillironX/nf-configs.git synced 2024-11-25 17:29:55 +00:00

resource based queuing

This commit is contained in:
Maxime Borry 2019-10-25 15:50:49 +02:00
parent 5e54912ada
commit 7a2fe44b43

View file

@ -14,14 +14,7 @@ singularity {
process { process {
executor = 'slurm' executor = 'slurm'
switch(task.time){ queue = { task.memory > 756.GB ? 'supercruncher': task.time <= 2.h ? 'short' : task.time <= 48.h ? 'medium': 'long' }
case {it < 2.h}:
queue = 'short'
case {it > 2.h && it < 48.h}:
queue = 'medium'
case {it > 48.h}:
queue = 'long'
}
} }
executor { executor {
@ -29,9 +22,9 @@ executor {
} }
params { params {
max_memory = 256.GB max_memory = 2.TB
max_cpus = 32 max_cpus = 32
max_time = 2.h max_time = 720.h
//Illumina iGenomes reference file path //Illumina iGenomes reference file path
igenomes_base = "/projects1/public_data/igenomes/" igenomes_base = "/projects1/public_data/igenomes/"
} }