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
This commit is contained in:
Zongheng Yang 2017-09-27 23:45:58 -07:00 committed by Philipp Moritz
parent bb76d4ca0a
commit 427dee511b

View file

@ -25,8 +25,15 @@
// //
// == TASK TABLE == // == 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_INFO_PREFIX "OI:"
#define OBJECT_LOCATION_PREFIX "OL:" #define OBJECT_LOCATION_PREFIX "OL:"