[ray_client]: Support runtime_context as metadata (#13428)

This commit is contained in:
Barak Michener
2021-01-14 14:37:00 -08:00
committed by GitHub
parent 9a658b568f
commit 84e110a949
6 changed files with 90 additions and 2 deletions
+9
View File
@@ -138,6 +138,7 @@ message ClusterInfoType {
NODES = 1;
CLUSTER_RESOURCES = 2;
AVAILABLE_RESOURCES = 3;
RUNTIME_CONTEXT = 4;
}
}
@@ -149,10 +150,18 @@ message ClusterInfoResponse {
message ResourceTable {
map<string, double> table = 1;
}
message RuntimeContext {
bytes job_id = 1;
bytes node_id = 2;
bool capture_client_tasks = 3;
}
ClusterInfoType.TypeEnum type = 1;
oneof response_type {
string json = 2;
ResourceTable resource_table = 3;
RuntimeContext runtime_context = 4;
}
}