10
10
11
11
process {
12
12
13
- // TODO nf-core: Check the defaults for all processes
14
- cpus = { check_max( 1 * task.attempt, 'cpus' ) }
15
- memory = { check_max( 6.GB * task.attempt, 'memory' ) }
16
- time = { check_max( 4.h * task.attempt, 'time' ) }
17
-
13
+ // Add defaults
14
+ cpus = { 1 * task.attempt }
15
+ memory = { 6.GB * task.attempt }
16
+ time = { 4.h * task.attempt }
18
17
errorStrategy = { task.exitStatus in ((130..145) + 104) ? 'retry' : 'finish' }
19
18
maxRetries = 1
20
19
maxErrors = '-1'
@@ -27,30 +26,30 @@ process {
27
26
// TODO nf-core: Customise requirements for specific processes.
28
27
// See https://www.nextflow.io/docs/latest/config.html#config-process-selectors
29
28
withLabel:process_single {
30
- cpus = { check_max( 1 , 'cpus' ) }
31
- memory = { check_max( 6.GB * task.attempt, 'memory' ) }
32
- time = { check_max( 4.h * task.attempt, 'time' ) }
29
+ cpus = { 1 }
30
+ memory = { 6.GB * task.attempt }
31
+ time = { 4.h * task.attempt }
33
32
}
34
33
withLabel:process_low {
35
- cpus = { check_max( 2 * task.attempt, 'cpus' ) }
36
- memory = { check_max( 12.GB * task.attempt, 'memory' ) }
37
- time = { check_max( 4.h * task.attempt, 'time' ) }
34
+ cpus = { 2 * task.attempt }
35
+ memory = { 12.GB * task.attempt }
36
+ time = { 4.h * task.attempt }
38
37
}
39
38
withLabel:process_medium {
40
- cpus = { check_max( 6 * task.attempt, 'cpus' ) }
41
- memory = { check_max( 36.GB * task.attempt, 'memory' ) }
42
- time = { check_max( 8.h * task.attempt, 'time' ) }
39
+ cpus = { 6 * task.attempt }
40
+ memory = { 36.GB * task.attempt }
41
+ time = { 8.h * task.attempt }
43
42
}
44
43
withLabel:process_high {
45
- cpus = { check_max( 12 * task.attempt, 'cpus' ) }
46
- memory = { check_max( 72.GB * task.attempt, 'memory' ) }
47
- time = { check_max( 16.h * task.attempt, 'time' ) }
44
+ cpus = { 12 * task.attempt }
45
+ memory = { 72.GB * task.attempt }
46
+ time = { 16.h * task.attempt }
48
47
}
49
48
withLabel:process_long {
50
- time = { check_max( 20.h * task.attempt, 'time' ) }
49
+ time = { 20.h * task.attempt }
51
50
}
52
51
withLabel:process_high_memory {
53
- memory = { check_max( 200.GB * task.attempt, 'memory' ) }
52
+ memory = { 200.GB * task.attempt }
54
53
}
55
54
withLabel:error_ignore {
56
55
errorStrategy = 'ignore'
0 commit comments