| 518 | } |
| 519 | |
| 520 | void Task::removeSpillDirectoryIfExists() { |
| 521 | if (spillDirectory_.empty() || !spillDirectoryCreated_) { |
| 522 | return; |
| 523 | } |
| 524 | try { |
| 525 | auto fs = filesystems::getFileSystem(spillDirectory_, nullptr); |
| 526 | fs->rmdir(spillDirectory_); |
| 527 | } catch (const std::exception& e) { |
| 528 | LOG(ERROR) << "Failed to remove spill directory '" << spillDirectory_ |
| 529 | << "' for Task " << taskId() << ": " << e.what(); |
| 530 | } |
| 531 | } |
| 532 | |
| 533 | void Task::initTaskPool() { |
| 534 | BOLT_CHECK_NULL(pool_); |
nothing calls this directly
no test coverage detected