-
Notifications
You must be signed in to change notification settings - Fork 7
/
nextflow.config
46 lines (39 loc) · 938 Bytes
/
nextflow.config
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
executor {
name = 'local'
}
process.ext.base_memory = 6.GB
process.ext.base_time = 10.minutes
process {
executor = 'local'
// Dynamic resource allocation with retries
errorStrategy = 'retry'
maxRetries = 1
memory = { task.ext.base_memory * task.attempt }
time = { task.ext.base_time * task.attempt }
// Labels for specific runtimes
withLabel: short_time {
ext.base_time = 5.minutes
}
withLabel: default_time {
ext.base_time = 10.minutes
}
withLabel: med_time {
ext.base_time = 30.minutes
}
withLabel: long_time {
ext.base_time = 1.hour
}
// Labels for specific memory usage
withLabel: small_mem {
ext.base_memory = 1.GB
}
withLabel: default_mem {
ext.base_memory = 6.GB
}
withLabel: med_mem {
ext.base_memory = 8.GB
}
withLabel: big_mem {
ext.base_memory = 10.GB
}
}