auto-sklearn icon indicating copy to clipboard operation
auto-sklearn copied to clipboard

Fix `__del__` of backend so that it works as expected.

Open eddiebergman opened this issue 4 years ago • 0 comments

Previously, we used to delete the backend with __del__ in AutoML but this was changed with PR #1155 due to issues of modules being unloaded before __del__ had finished.

The real solution was to move __del__ to the backend object instead of the AutoML object.

class Backend:

    def __del__(self):
        if delete_tmp_dir:
             os.rmdir(...)

eddiebergman avatar Nov 17 '21 09:11 eddiebergman