Skip to content

Commit e14fc99

Browse files
authored
Prevent the use existing work dir (#5682) [ci fast]
Signed-off-by: Paolo Di Tommaso <paolo.ditommaso@gmail.com>
1 parent 5abb5ad commit e14fc99

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

modules/nextflow/src/main/groovy/nextflow/processor/TaskProcessor.groovy

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -830,7 +830,11 @@ class TaskProcessor {
830830
try {
831831
if( resumeDir != workDir )
832832
exists = workDir.exists()
833-
if( !exists && !workDir.mkdirs() )
833+
if( exists ) {
834+
tries++
835+
continue
836+
}
837+
else if( !workDir.mkdirs() )
834838
throw new IOException("Unable to create directory=$workDir -- check file system permissions")
835839
}
836840
finally {

0 commit comments

Comments
 (0)