[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:
SangBin Cho
2020-08-18 12:44:00 -07:00
committed by GitHub
parent d188becec2
commit 263df6163c
24 changed files with 762 additions and 111 deletions
+3 -3
View File
@@ -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: