-
Notifications
You must be signed in to change notification settings - Fork 6k
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
__del__ magic method can't access class properties #14285
Comments
Hi, I'm a bot from the Ray team :) To help human contributors to focus on more relevant issues, I will automatically add the stale label to issues that have had no activity for more than 4 months. If there is no further activity in the 14 days, the issue will be closed!
You can always ask for help on our discussion forum or Ray's public slack channel. |
Hi, any workaround or fix for this? This bug still exists and is a bit of an issue cause I cannot do a close operation. Thanks! |
We will triage this again. I think this could be a pretty common usability issue (although there's workaround). Are there other people who also had this issue? |
Hi, thanks for that! |
I think it's P2. But we better fix it someday.. |
What is the problem?
Class properties cannot be accessed within the
__del__
method.Running Ubuntu 20.04, Python 3.8, Ray 1.1.
Reproduction (REQUIRED)
This can be fixed by creating a method within the class e.g.
destroy
and calling that explicitly beforedel
but this should work within the__del__
method too?The text was updated successfully, but these errors were encountered: