Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix __del__ of backend so that it works as expected. #1305

Open
eddiebergman opened this issue Nov 17, 2021 · 0 comments
Open

Fix __del__ of backend so that it works as expected. #1305

eddiebergman opened this issue Nov 17, 2021 · 0 comments
Labels
maintenance Internal maintenance

Comments

@eddiebergman
Copy link
Contributor

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(...)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance Internal maintenance
Projects
None yet
Development

No branches or pull requests

1 participant