Skip to content

Commit

Permalink
remove results folder if processor is aborted
Browse files Browse the repository at this point in the history
  • Loading branch information
dale-wahl committed Aug 22, 2023
1 parent 844006e commit 60842ba
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions backend/lib/processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,8 @@ def remove_files(self):
# Remove the results file that was created
if self.dataset.get_results_path().exists():
self.dataset.get_results_path().unlink()
if self.dataset.get_results_folder_path().exists():
shutil.rmtree(self.dataset.get_results_folder_path())

# Remove any staging areas with temporary data
self.dataset.remove_staging_areas()
Expand Down

0 comments on commit 60842ba

Please sign in to comment.