mirror of
https://github.com/wassname/ray.git
synced 2026-10-28 13:21:06 +08:00
[core] Better Actor Representation (#2369)
This commit is contained in:
1 parent
fa33ea5283
commit
55d5e28872
1 file changed
+2
-1
+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