Skip to content

Commit

Permalink
Prevent the use existing work dir (#5682) [ci fast]
Browse files Browse the repository at this point in the history
Signed-off-by: Paolo Di Tommaso <[email protected]>
  • Loading branch information
pditommaso authored Jan 19, 2025
1 parent 5abb5ad commit e14fc99
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -830,7 +830,11 @@ class TaskProcessor {
try {
if( resumeDir != workDir )
exists = workDir.exists()
if( !exists && !workDir.mkdirs() )
if( exists ) {
tries++
continue
}
else if( !workDir.mkdirs() )
throw new IOException("Unable to create directory=$workDir -- check file system permissions")
}
finally {
Expand Down

0 comments on commit e14fc99

Please sign in to comment.