mirror of
https://github.com/wassname/ray.git
synced 2026-07-11 19:18:57 +08:00
[Placement Group] Placement group remove api part 1 (#10063)
* Added basic rpc calls. * fix issues. * Fix the gcs server not getting request issue. * In Progress. * Basic logic done. Tests are required. * In progress. * In progress in refactoring context. * Revert "In progress in refactoring context." This reverts commit 38236256cf1306c60dd203e75d45ceb4509c8106. * Working now. * Python test works. * Lint. * Addressed code review. * Addressed code review. * Lint. * Added unit tests. * Done, but one of unit tests fail * Addressed code review. * Addressed the last code review. * Fix the wrong test case.
This commit is contained in:
+3
-3
@@ -404,10 +404,10 @@ class GlobalState:
|
||||
def get_state(state):
|
||||
if state == ray.gcs_utils.PlacementGroupTableData.PENDING:
|
||||
return "PENDING"
|
||||
elif state == ray.gcs_utils.PlacementGroupTableData.ALIVE:
|
||||
return "ALIVE"
|
||||
elif state == ray.gcs_utils.PlacementGroupTableData.CREATED:
|
||||
return "CREATED"
|
||||
else:
|
||||
return "DEAD"
|
||||
return "REMOVED"
|
||||
|
||||
def get_strategy(strategy):
|
||||
if strategy == PlacementStrategy.PACK:
|
||||
|
||||
Reference in New Issue
Block a user