add nextflow d30e48d
This commit is contained in:
30
nextflow/tests-v1/stub-retry.nf
Normal file
30
nextflow/tests-v1/stub-retry.nf
Normal file
@@ -0,0 +1,30 @@
|
||||
process stubtest {
|
||||
debug true
|
||||
errorStrategy 'retry'
|
||||
|
||||
output:
|
||||
path("*.txt")
|
||||
|
||||
script:
|
||||
"""
|
||||
echo "Not stubbing"
|
||||
touch script.txt
|
||||
"""
|
||||
|
||||
stub:
|
||||
if( task.attempt < 2 ) {
|
||||
"""
|
||||
echo "Stubbing. Not creating file"
|
||||
"""
|
||||
} else {
|
||||
"""
|
||||
echo "Stubbing. Creating file"
|
||||
touch script.txt
|
||||
"""
|
||||
}
|
||||
}
|
||||
|
||||
workflow {
|
||||
main:
|
||||
stubtest()
|
||||
}
|
||||
Reference in New Issue
Block a user