[Placement Group]Add detached support for placement group. (#13582)

This commit is contained in:
DK.Pino
2021-01-27 18:51:26 +08:00
committed by GitHub
parent d2963f4ee1
commit 7f6d326ad8
15 changed files with 209 additions and 21 deletions
+4 -2
View File
@@ -1184,7 +1184,8 @@ cdef class CoreWorker:
self,
c_string name,
c_vector[unordered_map[c_string, double]] bundles,
c_string strategy):
c_string strategy,
c_bool is_detached):
cdef:
CPlacementGroupID c_placement_group_id
CPlacementStrategy c_strategy
@@ -1208,7 +1209,8 @@ cdef class CoreWorker:
CPlacementGroupCreationOptions(
name,
c_strategy,
bundles
bundles,
is_detached
),
&c_placement_group_id))