mirror of
https://github.com/wassname/ray.git
synced 2026-08-01 12:51:09 +08:00
Convert task_spec to flatbuffers (#255)
* convert Ray to C++ * convert task_spec to flatbuffers * fix * it compiles * latest * tests are passing * task2 -> task * fix * fix * fix * fix * fix * linting * fix valgrind * upgrade flatbuffers * use debug mode for valgrind * fix naming and comments * downgrade flatbuffers * fix linting * reintroduce TaskSpec_free * rename TaskSpec -> TaskInfo * refactoring * linting
This commit is contained in:
committed by
Robert Nishihara
parent
65a8659f3d
commit
0b8d279ef2
@@ -58,7 +58,8 @@ void provide_scheduler_info(LocalSchedulerState *state,
|
||||
*/
|
||||
void handle_task_submitted(LocalSchedulerState *state,
|
||||
SchedulingAlgorithmState *algorithm_state,
|
||||
task_spec *spec);
|
||||
TaskSpec *spec,
|
||||
int64_t task_spec_size);
|
||||
|
||||
/**
|
||||
* This version of handle_task_submitted is used when the task being submitted
|
||||
@@ -71,7 +72,8 @@ void handle_task_submitted(LocalSchedulerState *state,
|
||||
*/
|
||||
void handle_actor_task_submitted(LocalSchedulerState *state,
|
||||
SchedulingAlgorithmState *algorithm_state,
|
||||
task_spec *spec);
|
||||
TaskSpec *spec,
|
||||
int64_t task_spec_size);
|
||||
|
||||
/**
|
||||
* This function will be called when the local scheduler receives a notification
|
||||
@@ -99,7 +101,8 @@ void handle_actor_creation_notification(
|
||||
*/
|
||||
void handle_task_scheduled(LocalSchedulerState *state,
|
||||
SchedulingAlgorithmState *algorithm_state,
|
||||
task_spec *spec);
|
||||
TaskSpec *spec,
|
||||
int64_t task_spec_size);
|
||||
|
||||
/**
|
||||
* This function will be called when an actor task is assigned by the global
|
||||
@@ -113,7 +116,8 @@ void handle_task_scheduled(LocalSchedulerState *state,
|
||||
*/
|
||||
void handle_actor_task_scheduled(LocalSchedulerState *state,
|
||||
SchedulingAlgorithmState *algorithm_state,
|
||||
task_spec *spec);
|
||||
TaskSpec *spec,
|
||||
int64_t task_spec_size);
|
||||
|
||||
/**
|
||||
* This function is called if a new object becomes available in the local
|
||||
|
||||
Reference in New Issue
Block a user