Neuraxle icon indicating copy to clipboard operation
Neuraxle copied to clipboard

Bug: Add a flush cache folder or rmtree in ExecutionContext

Open alexbrillant opened this issue 5 years ago • 1 comments

class ExecutionContext:
    def mkdir(self):
        """
        Creates the directory to save the last parent step.

        :return:
        """
        path = self.get_path()
        if not os.path.exists(path):
            os.makedirs(path)
 
    def rmtree(self):
          #TODO: shutil.rmtree ??

alexbrillant avatar Oct 08 '20 21:10 alexbrillant

  • Perhaps use this as well in the ForceHandleMixin or something, or in steps that create a temporary context from any unspecified folder when they end their processing.
  • Could make use of a random string for the tmp cache folder used in these cases if we are to delete the folder after.
  • Thinking about it, the AutoML/HPRepos' contexts create a caching folder instead of cache folder. Might need to merge these? or rename better.

guillaume-chevalier avatar Oct 21 '21 14:10 guillaume-chevalier

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs in the next 180 days. Thank you for your contributions.

stale[bot] avatar Apr 24 '23 18:04 stale[bot]