mirror of
https://github.com/wassname/ray.git
synced 2026-07-31 12:41:01 +08:00
[Placement Group] Capture child tasks by default. (#11025)
* In progress. * Finished up. * Improve comment. * Addressed code review. * Fix test failure. * Fix ci failures. * Fix CI issues.
This commit is contained in:
@@ -44,7 +44,7 @@ ObjectID LocalModeTaskSubmitter::Submit(const InvocationSpec &invocation) {
|
||||
local_mode_ray_tuntime_.GetCurrentTaskId(), 0,
|
||||
local_mode_ray_tuntime_.GetCurrentTaskId(), address, 1,
|
||||
required_resources, required_placement_resources,
|
||||
PlacementGroupID::Nil());
|
||||
PlacementGroupID::Nil(), true);
|
||||
if (invocation.task_type == TaskType::NORMAL_TASK) {
|
||||
} else if (invocation.task_type == TaskType::ACTOR_CREATION_TASK) {
|
||||
builder.SetActorCreationTaskSpec(invocation.actor_id);
|
||||
|
||||
@@ -37,7 +37,7 @@ ObjectID NativeTaskSubmitter::Submit(const InvocationSpec &invocation) {
|
||||
&return_ids);
|
||||
} else {
|
||||
core_worker.SubmitTask(ray_function, args, TaskOptions(), &return_ids, 1,
|
||||
std::make_pair(PlacementGroupID::Nil(), -1));
|
||||
std::make_pair(PlacementGroupID::Nil(), -1), true);
|
||||
}
|
||||
return return_ids[0];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user