Skip to content

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

Open
@eddiebergman

Description

@eddiebergman

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(...)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions