mirror of
https://github.com/wassname/ray.git
synced 2026-07-02 01:37:40 +08:00
Add task ID and object ID search boxes to web UI. (#704)
* Task search box. * Cleaned up. * Small reformatting. * Add object table search box.
This commit is contained in:
committed by
Robert Nishihara
parent
716469160e
commit
2b11a7bca2
@@ -132,6 +132,10 @@ class GlobalState(object):
|
||||
Returns:
|
||||
A dictionary with information about the object ID in question.
|
||||
"""
|
||||
# Allow the argument to be either an ObjectID or a hex string.
|
||||
if not isinstance(object_id, ray.local_scheduler.ObjectID):
|
||||
object_id = ray.local_scheduler.ObjectID(hex_to_binary(object_id))
|
||||
|
||||
# Return information about a single object ID.
|
||||
object_locations = self._execute_command(object_id,
|
||||
"RAY.OBJECT_TABLE_LOOKUP",
|
||||
|
||||
Reference in New Issue
Block a user