Skip to content

Commit cb84b20

Browse files
authored
Merge pull request #926 from nf-core/cropdiversityhpc-resourcesfix
errorStrategy now correctly catches OoM and timeout for retries
2 parents 407513f + 1b8d819 commit cb84b20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

conf/cropdiversityhpc.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ executor {
1010

1111
process {
1212
scratch = true
13-
errorStrategy = 'finish'
13+
errorStrategy = { task.exitStatus in [137, 140] ? 'retry' : 'finish' }
1414
executor = 'slurm'
1515
queue = { task.memory <= 32.GB ? (task.time < 6.h ? task.memory <=2.GB ? 'hicpu': 'short' : task.time < 24.h ? 'medium' : 'long') : 'himem' }
1616
withLabel:process_gpu {

0 commit comments

Comments
 (0)