modal 0.67.33__py3-none-any.whl → 0.67.42__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- modal/_runtime/container_io_manager.py +2 -2
- modal/cli/_traceback.py +8 -3
- modal/cli/app.py +1 -1
- modal/cli/network_file_system.py +23 -2
- modal/client.py +1 -1
- modal/client.pyi +2 -2
- modal/functions.py +2 -2
- modal/functions.pyi +10 -10
- modal/io_streams.py +1 -1
- modal/network_file_system.py +6 -0
- modal/network_file_system.pyi +20 -0
- modal/queue.py +33 -27
- modal/sandbox.py +37 -12
- modal/sandbox.pyi +10 -3
- {modal-0.67.33.dist-info → modal-0.67.42.dist-info}/METADATA +1 -1
- {modal-0.67.33.dist-info → modal-0.67.42.dist-info}/RECORD +28 -28
- modal_proto/api.proto +26 -1
- modal_proto/api_grpc.py +16 -0
- modal_proto/api_pb2.py +743 -710
- modal_proto/api_pb2.pyi +88 -4
- modal_proto/api_pb2_grpc.py +34 -1
- modal_proto/api_pb2_grpc.pyi +13 -3
- modal_proto/modal_api_grpc.py +1 -0
- modal_version/_version_generated.py +1 -1
- {modal-0.67.33.dist-info → modal-0.67.42.dist-info}/LICENSE +0 -0
- {modal-0.67.33.dist-info → modal-0.67.42.dist-info}/WHEEL +0 -0
- {modal-0.67.33.dist-info → modal-0.67.42.dist-info}/entry_points.txt +0 -0
- {modal-0.67.33.dist-info → modal-0.67.42.dist-info}/top_level.txt +0 -0
modal_proto/api.proto
CHANGED
@@ -400,7 +400,8 @@ message AppPublishRequest {
|
|
400
400
|
|
401
401
|
message AppPublishResponse {
|
402
402
|
string url = 1;
|
403
|
-
repeated string warnings = 2;
|
403
|
+
repeated string warnings = 2; // Deprecated soon in favor of server_warnings
|
404
|
+
repeated Warning server_warnings = 3;
|
404
405
|
}
|
405
406
|
|
406
407
|
message AppRollbackRequest {
|
@@ -619,6 +620,7 @@ message ClassGetRequest {
|
|
619
620
|
message ClassGetResponse {
|
620
621
|
string class_id = 1;
|
621
622
|
ClassHandleMetadata handle_metadata = 2;
|
623
|
+
repeated Warning server_warnings = 3;
|
622
624
|
}
|
623
625
|
|
624
626
|
message ClassHandleMetadata {
|
@@ -1211,6 +1213,17 @@ message Function {
|
|
1211
1213
|
bool _experimental_custom_scaling = 76;
|
1212
1214
|
}
|
1213
1215
|
|
1216
|
+
message FunctionAsyncInvokeRequest {
|
1217
|
+
string function_id = 1;
|
1218
|
+
string parent_input_id = 2;
|
1219
|
+
FunctionInput input = 3;
|
1220
|
+
}
|
1221
|
+
|
1222
|
+
message FunctionAsyncInvokeResponse {
|
1223
|
+
bool retry_with_blob_upload = 1;
|
1224
|
+
string function_call_id = 2;
|
1225
|
+
}
|
1226
|
+
|
1214
1227
|
message FunctionBindParamsRequest {
|
1215
1228
|
string function_id = 1;
|
1216
1229
|
bytes serialized_params = 2;
|
@@ -1446,6 +1459,7 @@ message FunctionGetRequest {
|
|
1446
1459
|
message FunctionGetResponse {
|
1447
1460
|
string function_id = 1;
|
1448
1461
|
FunctionHandleMetadata handle_metadata = 2;
|
1462
|
+
repeated Warning server_warnings = 4;
|
1449
1463
|
}
|
1450
1464
|
|
1451
1465
|
message FunctionGetSerializedRequest {
|
@@ -2614,6 +2628,16 @@ message VolumeRemoveFileRequest {
|
|
2614
2628
|
bool recursive = 3;
|
2615
2629
|
}
|
2616
2630
|
|
2631
|
+
message Warning {
|
2632
|
+
enum WarningType {
|
2633
|
+
WARNING_TYPE_UNSPECIFIED = 0;
|
2634
|
+
WARNING_TYPE_CLIENT_DEPRECATION = 1;
|
2635
|
+
WARNING_TYPE_RESOURCE_LIMIT = 2;
|
2636
|
+
}
|
2637
|
+
WarningType type = 1;
|
2638
|
+
string message = 2;
|
2639
|
+
}
|
2640
|
+
|
2617
2641
|
message WebUrlInfo {
|
2618
2642
|
bool truncated = 1;
|
2619
2643
|
bool has_unique_hash = 2 [deprecated=true];
|
@@ -2705,6 +2729,7 @@ service ModalClient {
|
|
2705
2729
|
rpc EnvironmentUpdate(EnvironmentUpdateRequest) returns (EnvironmentListItem);
|
2706
2730
|
|
2707
2731
|
// Functions
|
2732
|
+
rpc FunctionAsyncInvoke(FunctionAsyncInvokeRequest) returns (FunctionAsyncInvokeResponse);
|
2708
2733
|
rpc FunctionBindParams(FunctionBindParamsRequest) returns (FunctionBindParamsResponse);
|
2709
2734
|
rpc FunctionCallCancel(FunctionCallCancelRequest) returns (google.protobuf.Empty);
|
2710
2735
|
rpc FunctionCallGetDataIn(FunctionCallGetDataRequest) returns (stream DataChunk);
|
modal_proto/api_grpc.py
CHANGED
@@ -217,6 +217,10 @@ class ModalClientBase(abc.ABC):
|
|
217
217
|
async def EnvironmentUpdate(self, stream: 'grpclib.server.Stream[modal_proto.api_pb2.EnvironmentUpdateRequest, modal_proto.api_pb2.EnvironmentListItem]') -> None:
|
218
218
|
pass
|
219
219
|
|
220
|
+
@abc.abstractmethod
|
221
|
+
async def FunctionAsyncInvoke(self, stream: 'grpclib.server.Stream[modal_proto.api_pb2.FunctionAsyncInvokeRequest, modal_proto.api_pb2.FunctionAsyncInvokeResponse]') -> None:
|
222
|
+
pass
|
223
|
+
|
220
224
|
@abc.abstractmethod
|
221
225
|
async def FunctionBindParams(self, stream: 'grpclib.server.Stream[modal_proto.api_pb2.FunctionBindParamsRequest, modal_proto.api_pb2.FunctionBindParamsResponse]') -> None:
|
222
226
|
pass
|
@@ -843,6 +847,12 @@ class ModalClientBase(abc.ABC):
|
|
843
847
|
modal_proto.api_pb2.EnvironmentUpdateRequest,
|
844
848
|
modal_proto.api_pb2.EnvironmentListItem,
|
845
849
|
),
|
850
|
+
'/modal.client.ModalClient/FunctionAsyncInvoke': grpclib.const.Handler(
|
851
|
+
self.FunctionAsyncInvoke,
|
852
|
+
grpclib.const.Cardinality.UNARY_UNARY,
|
853
|
+
modal_proto.api_pb2.FunctionAsyncInvokeRequest,
|
854
|
+
modal_proto.api_pb2.FunctionAsyncInvokeResponse,
|
855
|
+
),
|
846
856
|
'/modal.client.ModalClient/FunctionBindParams': grpclib.const.Handler(
|
847
857
|
self.FunctionBindParams,
|
848
858
|
grpclib.const.Cardinality.UNARY_UNARY,
|
@@ -1635,6 +1645,12 @@ class ModalClientStub:
|
|
1635
1645
|
modal_proto.api_pb2.EnvironmentUpdateRequest,
|
1636
1646
|
modal_proto.api_pb2.EnvironmentListItem,
|
1637
1647
|
)
|
1648
|
+
self.FunctionAsyncInvoke = grpclib.client.UnaryUnaryMethod(
|
1649
|
+
channel,
|
1650
|
+
'/modal.client.ModalClient/FunctionAsyncInvoke',
|
1651
|
+
modal_proto.api_pb2.FunctionAsyncInvokeRequest,
|
1652
|
+
modal_proto.api_pb2.FunctionAsyncInvokeResponse,
|
1653
|
+
)
|
1638
1654
|
self.FunctionBindParams = grpclib.client.UnaryUnaryMethod(
|
1639
1655
|
channel,
|
1640
1656
|
'/modal.client.ModalClient/FunctionBindParams',
|