Skip to content

Commit e73bce8

Browse files
authored
Add support to reload environment variables (#20)
1 parent 58b3dc0 commit e73bce8

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/proto/FunctionRpc.proto

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,10 @@ message StreamingMessage {
6565

6666
// Worker logs a message back to the host
6767
RpcLog rpc_log = 2;
68+
69+
FunctionEnvironmentReLoadRequest function_environment_reload_request = 25;
70+
71+
FunctionEnvironmentReLoadResponse function_environment_reload_response = 26;
6872
}
6973
}
7074

@@ -180,6 +184,16 @@ message WorkerStatusRequest{
180184
message WorkerStatusResponse {
181185
}
182186

187+
message FunctionEnvironmentReLoadRequest {
188+
// Environment variables from the current process
189+
map<string, string> environment_variables = 1;
190+
}
191+
192+
message FunctionEnvironmentReLoadResponse {
193+
// Status of the response
194+
StatusResult result = 3;
195+
}
196+
183197
// Host tells the worker to load a Function
184198
message FunctionLoadRequest {
185199
// unique function identifier (avoid name collisions, facilitate reload case)

0 commit comments

Comments
 (0)