jupyter-scheduler icon indicating copy to clipboard operation
jupyter-scheduler copied to clipboard

Delete job output folder and downloaded job files on job deletion (auto-delete)

Open aaaditij opened this issue 1 year ago • 1 comments

Description

Job folder and downloaded job files are not getting deleted from the output folder (/jobs/ by default) on job deletion.

Reproduce

  1. Right-click on a notebook in the file browser and choose “Create Notebook Job” from the context menu.
  2. Go to 'Notebook Jobs' from Launcher.
  3. Once the job completes, click on 'Delete job'.

The job is removed from the Jobs list but the /jobs folder still contains the job folder and downloaded job files.

Expected behavior

Job folder and downloaded job files should be deleted from /jobs/ folder upon job deletion.

aaaditij avatar Jun 20 '24 00:06 aaaditij

Hi @aaaditij. Thank you for creating this issue. Described behavior is an expected behavior and not a bug. We did not want to delete files in user’s output folder in case users would continue working in output files or otherwise need them after job deletion. We are open to consider “output auto-delete” feature in the future (probably as a setting) but this is not a priority / we are not working on it now.

andrii-i avatar Jun 20 '24 01:06 andrii-i