mirror of
https://github.com/wassname/ray.git
synced 2026-07-06 02:30:52 +08:00
Fix driver id in TaskInfo (#5055)
This commit is contained in:
@@ -74,8 +74,8 @@ enum class TaskType { NORMAL_TASK, ACTOR_CREATION_TASK, ACTOR_TASK };
|
||||
struct TaskInfo {
|
||||
/// The ID of task.
|
||||
const TaskID task_id;
|
||||
/// The driver ID.
|
||||
const DriverID driver_id;
|
||||
/// The job ID.
|
||||
const JobID job_id;
|
||||
/// The type of task.
|
||||
const TaskType task_type;
|
||||
};
|
||||
|
||||
@@ -46,7 +46,7 @@ Status CoreWorkerTaskExecutionInterface::Run(const TaskExecutor &executor) {
|
||||
task_type = TaskType::NORMAL_TASK;
|
||||
}
|
||||
|
||||
TaskInfo task_info{spec.TaskId(), spec.DriverId(), task_type};
|
||||
TaskInfo task_info{spec.TaskId(), spec.JobId(), task_type};
|
||||
|
||||
auto num_returns = spec.NumReturns();
|
||||
if (spec.IsActorCreationTask() || spec.IsActorTask()) {
|
||||
|
||||
Reference in New Issue
Block a user