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:
alanamarzoev
2017-07-01 14:48:23 -07:00
committed by Robert Nishihara
parent 716469160e
commit 2b11a7bca2
2 changed files with 69 additions and 6 deletions
+4
View File
@@ -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",