mercury icon indicating copy to clipboard operation
mercury copied to clipboard

refactor(storage): ensure output dir is cleared before each run

Open Koech01 opened this issue 5 months ago • 1 comments

Summary

This PR ensures that the output directory is cleared before each notebook run. This prevents stale or leftover files from previous executions from affecting new runs.

Changes Made

  • Added a new method clear_output_dir() to StorageManager to delete and recreate the worker's output directory
  • Called clear_output_dir() at the beginning of run_notebook() before syncing output

Related Issue

Fixes #333

Notes

  • Manually tested using a custom .ipynb notebook file

Koech01 avatar Jun 24 '25 08:06 Koech01

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Jun 24 '25 10:06 CLAassistant