mirror of
https://github.com/wassname/ray.git
synced 2026-07-13 17:45:08 +08:00
Remove use of ObjectID transport flag (#7699)
This commit is contained in:
@@ -30,8 +30,7 @@ void AbstractRayRuntime::Put(std::shared_ptr<msgpack::sbuffer> data,
|
||||
|
||||
ObjectID AbstractRayRuntime::Put(std::shared_ptr<msgpack::sbuffer> data) {
|
||||
ObjectID object_id =
|
||||
ObjectID::ForPut(worker_->GetCurrentTaskID(), worker_->GetNextPutIndex(),
|
||||
static_cast<uint8_t>(TaskTransportType::RAYLET));
|
||||
ObjectID::ForPut(worker_->GetCurrentTaskID(), worker_->GetNextPutIndex());
|
||||
Put(data, object_id);
|
||||
return object_id;
|
||||
}
|
||||
|
||||
@@ -39,8 +39,8 @@ ObjectID LocalModeTaskSubmitter::Submit(const InvocationSpec &invocation, TaskTy
|
||||
} else if (type == TaskType::ACTOR_TASK) {
|
||||
const TaskID actor_creation_task_id =
|
||||
TaskID::ForActorCreationTask(invocation.actor_id);
|
||||
const ObjectID actor_creation_dummy_object_id = ObjectID::ForTaskReturn(
|
||||
actor_creation_task_id, 1, static_cast<int>(ray::TaskTransportType::RAYLET));
|
||||
const ObjectID actor_creation_dummy_object_id =
|
||||
ObjectID::ForTaskReturn(actor_creation_task_id, 1);
|
||||
builder.SetActorTaskSpec(invocation.actor_id, actor_creation_dummy_object_id,
|
||||
ObjectID(), invocation.actor_counter);
|
||||
} else {
|
||||
@@ -52,8 +52,7 @@ ObjectID LocalModeTaskSubmitter::Submit(const InvocationSpec &invocation, TaskTy
|
||||
/// TODO(Guyang Song): Use both 'AddByRefArg' and 'AddByValueArg' to distinguish
|
||||
builder.AddByValueArg(::ray::RayObject(buffer, nullptr, std::vector<ObjectID>()));
|
||||
auto task_specification = builder.Build();
|
||||
ObjectID return_object_id =
|
||||
task_specification.ReturnId(0, ray::TaskTransportType::RAYLET);
|
||||
ObjectID return_object_id = task_specification.ReturnId(0);
|
||||
|
||||
std::shared_ptr<msgpack::sbuffer> actor;
|
||||
std::shared_ptr<absl::Mutex> mutex;
|
||||
|
||||
@@ -40,7 +40,7 @@ void TaskExecutor::Invoke(const TaskSpecification &task_spec,
|
||||
data = (*exec_function)(dynamic_library_base_addr,
|
||||
std::stoul(typed_descriptor->FunctionOffset()), args);
|
||||
}
|
||||
runtime->Put(std::move(data), task_spec.ReturnId(0, ray::TaskTransportType::RAYLET));
|
||||
runtime->Put(std::move(data), task_spec.ReturnId(0));
|
||||
}
|
||||
} // namespace api
|
||||
} // namespace ray
|
||||
} // namespace ray
|
||||
|
||||
Reference in New Issue
Block a user