add nextflow d30e48d
This commit is contained in:
24
nextflow/tests/trace-access.nf
Normal file
24
nextflow/tests/trace-access.nf
Normal file
@@ -0,0 +1,24 @@
|
||||
process foo {
|
||||
memory { task.attempt > 1 ? task.previousTrace.memory * 2 : (1.GB) }
|
||||
errorStrategy 'retry'
|
||||
maxRetries 3
|
||||
input:
|
||||
val i
|
||||
output:
|
||||
stdout
|
||||
script:
|
||||
if( task.attempt <= 3 ){
|
||||
"""
|
||||
exit 137
|
||||
"""
|
||||
} else {
|
||||
"""
|
||||
echo 'mem: $task.memory (previous: $task.previousTrace.memory) (error: $task.previousException)'
|
||||
exit 0
|
||||
"""
|
||||
}
|
||||
}
|
||||
|
||||
workflow {
|
||||
foo(channel.of(1)).view()
|
||||
}
|
||||
Reference in New Issue
Block a user