mercury
mercury copied to clipboard
refactor(storage): ensure output dir is cleared before each run
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()toStorageManagerto delete and recreate the worker's output directory - Called
clear_output_dir()at the beginning ofrun_notebook()before syncing output
Related Issue
Fixes #333
Notes
- Manually tested using a custom
.ipynbnotebook file