ray/dashboard/modules/state
SangBin Cho 411b1d8d2d
[State Observability] Return list instead of dict (#25888)
I’d like to propose a bit changes to the API. Currently we are returning the dict of ID -> value mapping when the list API is returned. But I am thinking to change this to a list because the sort will become ineffective if we return the dictionary. So, it’s ideal we use the list to keep the order (it’s important for deterministic order)

Also, for some APIs, each entry doesn’t have a unique id. For example, list objects will have duplicated object IDs from their entries, which is not working with dict return type (e.g., there can be more than 1 Object ID entry if the object is locally referenced & borrowed by task/pinned in memory)
Also, users can easily build dict index on their own if it is necessary.
2022-06-20 22:49:29 -07:00
..
__init__.py Revert "Revert "[State Observability] Basic functionality for central… (#23933) 2022-04-18 21:15:43 -07:00
state_head.py [State Observability] Return list instead of dict (#25888) 2022-06-20 22:49:29 -07:00