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 <paolo.ditommaso@gmail.com>
  • Loading branch information
pditommaso committed Jan 20, 2025
1 parent 42a9d8a commit 7ed233e
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -828,7 +828,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 7ed233e

Please sign in to comment.