Skip to content

Commit e6d025a

Browse files
authoredJan 30, 2023
Add new message to support worker warmup (#84)
1 parent 90ed69f commit e6d025a

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed
 

‎src/proto/FunctionRpc.proto

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,13 @@ message StreamingMessage {
8686

8787
// Host gets the list of function load responses
8888
FunctionLoadResponseCollection function_load_response_collection = 32;
89+
90+
// Host sends required metadata to worker to warmup the worker
91+
WorkerWarmupRequest worker_warmup_request = 33;
92+
93+
// Worker responds after warming up with the warmup result
94+
WorkerWarmupResponse worker_warmup_response = 34;
95+
8996
}
9097
}
9198

@@ -423,6 +430,15 @@ message InvocationResponse {
423430
StatusResult result = 3;
424431
}
425432

433+
message WorkerWarmupRequest {
434+
// Full path of worker.config.json location
435+
string worker_directory = 1;
436+
}
437+
438+
message WorkerWarmupResponse {
439+
StatusResult result = 1;
440+
}
441+
426442
// Used to encapsulate data which could be a variety of types
427443
message TypedData {
428444
oneof data {

0 commit comments

Comments
 (0)