Skip to content

plotman kill doesn't remove all temp files #582

@Carglglz

Description

@Carglglz

Describe the bug

plotman kill doesn't remove all the temp files in tmp directory
To Reproduce

Steps to reproduce the behavior, e.g.:

  1. plotman kill [idprefix] and select remove all temp files.
  2. go to tmp directory
  3. ls -l | grep [idprefix] shows there are still some files

This leads to a tmp dir full of old tmp files from dead plots which fills the tmp dir unnecessarily.

Expected behavior

Remove all temp files.

This is probably because

temp_files = job.get_temp_files()

does not return all temp files, so it may be better to add os.listdir(tmp_dir) and some pattern matching to be sure it's all gone.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions