forked from ray-project/ray
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[core][dashboard] Add Pg Id and Format Required Resources in /logical…
…/actors Response (ray-project#47754) ## Problem to Solve In issue ray-project#45658, we found that the placement group id and the required resources are not displayed correctly in the actor UI tab in the dashboard. To be specific: * The "Placement group ID" column content is missing * The "Required resources" column shows resources with pg ids and bundle entries as well <img width="2532" alt="Screenshot 2024-09-18 at 9 49 27 AM" src="https://github.com/user-attachments/assets/1bdd3bd3-6216-459d-87ba-b28de8f3367e"> ## Root Cause With investigation, we found the root cause of the issue is that: * The dashboard calls "/logical/actors" to get the actor information to display * The response content of the above REST API doesn't contain the placement group id field and the required resources are not formatted correctly * Therefore, the dashboard fails to the display the corresponding content correctly ## Changes in the PR * Include `placementGroupId` in the keys to be translated/preserved in the `actor_table_data_to_dict` function so that the pg id can be included in the content of the REST API response * Leverage the `parse_pg_formatted_resources_to_original` function to reformatted the required resources before sending the REST API response * Test logic added in `test_actors` tests to verify the logic of setting the placement group id as well as the correctly formatted required resources Signed-off-by: Mengjin Yan <mengjinyan3@gmail.com> Signed-off-by: ujjawal-khare <ujjawal.khare@dream11.com>
- Loading branch information
1 parent
ae8a86a
commit f13ce61
Showing
3 changed files
with
55 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters