Add new message to support worker warmup

This commit is contained in:
Shreyas Gopalakrishna 2022-10-27 16:27:09 -05:00 коммит произвёл Shreyas Gopalakrishna
Родитель 90ed69f61f
Коммит 44ec2950d8
1 изменённых файлов: 16 добавлений и 0 удалений

Просмотреть файл

@ -86,6 +86,13 @@ message StreamingMessage {
// Host gets the list of function load responses
FunctionLoadResponseCollection function_load_response_collection = 32;
// Host sends required metadata to worker to warmup the worker
WorkerWarmupRequest worker_warmup_request = 33;
// Worker responds after warming up with the warmup result
WorkerWarmupResponse worker_warmup_response = 34;
}
}
@ -423,6 +430,15 @@ message InvocationResponse {
StatusResult result = 3;
}
message WorkerWarmupRequest {
// Full path of worker.config.json location
string worker_directory = 1;
}
message WorkerWarmupResponse {
StatusResult result = 1;
}
// Used to encapsulate data which could be a variety of types
message TypedData {
oneof data {