Skip to content

Commit 245e640

Browse files
committed
Merge branch 'dev' into main
2 parents 33dada8 + 0d3f104 commit 245e640

File tree

1 file changed

+21
-4
lines changed

1 file changed

+21
-4
lines changed

src/proto/FunctionRpc.proto

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,10 @@ message StreamingMessage {
7878

7979
// Worker indexing message types
8080
FunctionsMetadataRequest functions_metadata_request = 29;
81-
FunctionMetadataResponses function_metadata_responses = 30;
81+
FunctionMetadataResponse function_metadata_response = 30;
82+
83+
// Host sends required metadata to worker to load functions
84+
FunctionLoadRequestCollection function_load_request_collection = 31;
8285
}
8386
}
8487

@@ -220,7 +223,12 @@ message CloseSharedMemoryResourcesResponse {
220223
map<string, bool> close_map_results = 1;
221224
}
222225

223-
// Host tells the worker to load a Function
226+
// Host tells the worker to load a list of Functions
227+
message FunctionLoadRequestCollection {
228+
repeated FunctionLoadRequest function_load_requests = 1;
229+
}
230+
231+
// Load request of a single Function
224232
message FunctionLoadRequest {
225233
// unique function identifier (avoid name collisions, facilitate reload case)
226234
string function_id = 1;
@@ -273,6 +281,12 @@ message RpcFunctionMetadata {
273281

274282
// Raw binding info
275283
repeated string raw_bindings = 10;
284+
285+
// unique function identifier (avoid name collisions, facilitate reload case)
286+
string function_id = 13;
287+
288+
// A flag indicating if managed dependency is enabled or not
289+
bool managed_dependency_enabled = 14;
276290
}
277291

278292
// Host tells worker it is ready to receive metadata
@@ -282,12 +296,15 @@ message FunctionsMetadataRequest {
282296
}
283297

284298
// Worker sends function metadata back to host
285-
message FunctionMetadataResponses {
299+
message FunctionMetadataResponse {
286300
// list of function indexing responses
287-
repeated FunctionLoadRequest function_load_requests_results = 1;
301+
repeated RpcFunctionMetadata function_metadata_results = 1;
288302

289303
// status of overall metadata request
290304
StatusResult result = 2;
305+
306+
// if set to true then host will perform indexing
307+
bool useDefaultMetadataIndexing = 3;
291308
}
292309

293310
// Host requests worker to invoke a Function

0 commit comments

Comments
 (0)