From 427dee511b8c253e2334684368607b94b06af2b7 Mon Sep 17 00:00:00 2001 From: Zongheng Yang Date: Wed, 27 Sep 2017 23:45:58 -0700 Subject: [PATCH] Fill out specs of the task table in ray_redis_module.cc. (#1024) * Fill out specs of the task table in ray_redis_module.cc. * local scheduler field in task table * linting --- src/common/redis_module/ray_redis_module.cc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/common/redis_module/ray_redis_module.cc b/src/common/redis_module/ray_redis_module.cc index cabf8ce4b..75c0eee2e 100644 --- a/src/common/redis_module/ray_redis_module.cc +++ b/src/common/redis_module/ray_redis_module.cc @@ -25,8 +25,15 @@ // // == TASK TABLE == // -// TODO(pcm): Fill this out. +// It maps each TT:task_id to a hash: +// "state" -> the state of the task, encoded as a bit mask of scheduling_state +// enum values in task.h, +// "local_scheduler_id" -> the ID of the local scheduler the task is assigned +// to, +// "TaskSpec" -> serialized bytes of a TaskInfo (defined in common.fbs), which +// describes the details this task. // +// See also the definition of TaskReply in common.fbs. #define OBJECT_INFO_PREFIX "OI:" #define OBJECT_LOCATION_PREFIX "OL:"