-
Notifications
You must be signed in to change notification settings - Fork 7.3k
Closed
Labels
P1Issue that should be fixed within a few weeksIssue that should be fixed within a few weeksbugSomething that is supposed to be working; but isn'tSomething that is supposed to be working; but isn'tcommunity-backlogcoreIssues that should be addressed in Ray CoreIssues that should be addressed in Ray Corestabilityusability
Description
What happened + What you expected to happen
Currently, when actor's go out of scope we just exit the interpreter which skips __del__ method invocation leading to inability to do any of the clean ups in a straightforward fashion.
This is causing issues like #53124
Versions / Dependencies
2.46
Reproduction script
import ray
@ray.remote
class Actor:
def __init__(self):
print(">>> Actor.__init__")
def echo(self):
print(">>> Actor.echo")
def __del__(self):
print(">>> Actor.__del__")
actor = Actor.remote()
ray.wait(actor.echo.remote())
# Won't invoke __del__ on the actor class which creates a gap from pure Python-class perception
del actorIssue Severity
None
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
P1Issue that should be fixed within a few weeksIssue that should be fixed within a few weeksbugSomething that is supposed to be working; but isn'tSomething that is supposed to be working; but isn'tcommunity-backlogcoreIssues that should be addressed in Ray CoreIssues that should be addressed in Ray Corestabilityusability