mirror of
https://github.com/wassname/ray.git
synced 2026-08-04 13:14:14 +08:00
Convert actor dummy objects to task execution edges. (#1281)
* Define execution dependencies flatbuffer and add to Redis commands * Convert TaskSpec to TaskExecutionSpec * Add execution dependencies to Python bindings * Submitting actor tasks uses execution dependency API instead of dummy argument * Fix dependency getters and some cleanup for fetching missing dependencies * C++ convention * Make TaskExecutionSpec a C++ class * Convert local scheduler to use TaskExecutionSpec class * Convert some pointers to references * Finish conversion to TaskExecutionSpec class * fix * Fix * Fix memory errors? * Cast flatbuffers GetSize to size_t * Fixes * add more retries in global scheduler unit test * fix linting and cast fbb.GetSize to size_t * Style and doc * Fix linting and simplify from_flatbuf.
This commit is contained in:
committed by
Robert Nishihara
parent
cac5f47600
commit
12fdb3f53a
@@ -70,6 +70,14 @@ table ObjectInfo {
|
||||
|
||||
root_type TaskInfo;
|
||||
|
||||
table TaskExecutionDependencies {
|
||||
// A list of object IDs representing this task's dependencies at execution
|
||||
// time.
|
||||
execution_dependencies: [string];
|
||||
}
|
||||
|
||||
root_type TaskExecutionDependencies;
|
||||
|
||||
table SubscribeToNotificationsReply {
|
||||
// The object ID of the object that the notification is about.
|
||||
object_id: string;
|
||||
@@ -89,6 +97,8 @@ table TaskReply {
|
||||
state: long;
|
||||
// A local scheduler ID.
|
||||
local_scheduler_id: string;
|
||||
// A string of bytes representing the task's TaskExecutionDependencies.
|
||||
execution_dependencies: string;
|
||||
// A string of bytes representing the task specification.
|
||||
task_spec: string;
|
||||
// A boolean representing whether the update was successful. This field
|
||||
|
||||
Reference in New Issue
Block a user