mirror of
https://github.com/wassname/ray.git
synced 2026-08-13 12:30:18 +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:
@@ -1083,6 +1083,16 @@ cdef class CoreWorker:
|
||||
|
||||
return PlacementGroupID(c_placement_group_id.Binary())
|
||||
|
||||
def remove_placement_group(self, PlacementGroupID placement_group_id):
|
||||
cdef:
|
||||
CPlacementGroupID c_placement_group_id = \
|
||||
placement_group_id.native()
|
||||
|
||||
with nogil:
|
||||
check_status(
|
||||
CCoreWorkerProcess.GetCoreWorker().
|
||||
RemovePlacementGroup(c_placement_group_id))
|
||||
|
||||
def submit_actor_task(self,
|
||||
Language language,
|
||||
ActorID actor_id,
|
||||
|
||||
Reference in New Issue
Block a user