Skip to content

Commit

Permalink
feat: remove partitioned block
Browse files Browse the repository at this point in the history
  • Loading branch information
betarixm committed Nov 26, 2023
1 parent 988008c commit d522323
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions rpc/src/main/scala/WorkerServer.scala
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,14 @@ class WorkerServer(
logger.debug(
s"[WorkerServer] Wrote partition to $partitionPath"
)

if (path.exists && path.isFile) {
val result = path.delete()

logger.debug(
s"[WorkerServer] Deleted $path: $result"
)
}
})

})
Expand Down

0 comments on commit d522323

Please sign in to comment.