Skip to content

Commit 02613d5

Browse files
KartikYZmodal-bot
authored andcommitted
IO-100 Add is_sessioned flag to Function and FunctionData protos (#53711)
GitOrigin-RevId: f7c14ba92d699102d1010962c4f8d8606a0a743c
1 parent 039c182 commit 02613d5

3 files changed

Lines changed: 51 additions & 12 deletions

File tree

go/proto/modal_proto/api.pb.go

Lines changed: 44 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

modal_proto/api.proto

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2035,6 +2035,9 @@ message Function {
20352035
bool is_server = 92; // When True, the function is a server function
20362036

20372037
string routing_region = 93; // Where inputs to a function should be routed through.
2038+
2039+
// True when the function is a Sessioned Server. Only valid together with is_server.
2040+
bool is_sessioned = 95;
20382041
}
20392042

20402043
message FunctionAsyncInvokeRequest {
@@ -2240,6 +2243,9 @@ message FunctionData {
22402243
bool is_server = 41; // When True, the function is a server function
22412244

22422245
string routing_region = 42; // Where inputs to a function should be routed through.
2246+
2247+
// True when the function is a Sessioned Server. Only valid together with is_server.
2248+
bool is_sessioned = 44;
22432249
}
22442250

22452251
message FunctionExtended {

py/modal/_functions.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1110,6 +1110,7 @@ async def _load(self: _Function, resolver: Resolver, load_context: LoadContext,
11101110
http_config=http_config,
11111111
is_server=function_definition.is_server,
11121112
routing_region=function_definition.routing_region,
1113+
is_sessioned=function_definition.is_sessioned,
11131114
)
11141115

11151116
ranked_functions = []

0 commit comments

Comments
 (0)