mirror of
https://github.com/wassname/ray.git
synced 2026-06-29 12:24:32 +08:00
[core] Better Actor Representation (#2369)
This commit is contained in:
committed by
Robert Nishihara
parent
fa33ea5283
commit
55d5e28872
+2
-1
@@ -841,7 +841,8 @@ class ActorHandle(object):
|
||||
return object.__getattribute__(self, attr)
|
||||
|
||||
def __repr__(self):
|
||||
return "Actor(" + self._ray_actor_id.hex() + ")"
|
||||
return "Actor({}, {})".format(self._ray_class_name,
|
||||
self._ray_actor_id.hex())
|
||||
|
||||
def __del__(self):
|
||||
"""Kill the worker that is running this actor."""
|
||||
|
||||
Reference in New Issue
Block a user