modal 1.0.6.dev8__py3-none-any.whl → 1.0.6.dev10__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.
Potentially problematic release.
This version of modal might be problematic. Click here for more details.
- modal/_utils/blob_utils.py +22 -9
- modal/_utils/function_utils.py +9 -2
- modal/client.pyi +2 -2
- {modal-1.0.6.dev8.dist-info → modal-1.0.6.dev10.dist-info}/METADATA +1 -1
- {modal-1.0.6.dev8.dist-info → modal-1.0.6.dev10.dist-info}/RECORD +17 -17
- modal_proto/api.proto +9 -0
- modal_proto/api_grpc.py +16 -0
- modal_proto/api_pb2.py +711 -691
- modal_proto/api_pb2.pyi +30 -1
- modal_proto/api_pb2_grpc.py +33 -0
- modal_proto/api_pb2_grpc.pyi +10 -0
- modal_proto/modal_api_grpc.py +1 -0
- modal_version/__init__.py +1 -1
- {modal-1.0.6.dev8.dist-info → modal-1.0.6.dev10.dist-info}/WHEEL +0 -0
- {modal-1.0.6.dev8.dist-info → modal-1.0.6.dev10.dist-info}/entry_points.txt +0 -0
- {modal-1.0.6.dev8.dist-info → modal-1.0.6.dev10.dist-info}/licenses/LICENSE +0 -0
- {modal-1.0.6.dev8.dist-info → modal-1.0.6.dev10.dist-info}/top_level.txt +0 -0
modal_proto/api_pb2.pyi
CHANGED
|
@@ -3286,6 +3286,29 @@ class ContainerLogRequest(google.protobuf.message.Message):
|
|
|
3286
3286
|
|
|
3287
3287
|
global___ContainerLogRequest = ContainerLogRequest
|
|
3288
3288
|
|
|
3289
|
+
class ContainerReloadVolumesRequest(google.protobuf.message.Message):
|
|
3290
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
3291
|
+
|
|
3292
|
+
TASK_ID_FIELD_NUMBER: builtins.int
|
|
3293
|
+
task_id: builtins.str
|
|
3294
|
+
def __init__(
|
|
3295
|
+
self,
|
|
3296
|
+
*,
|
|
3297
|
+
task_id: builtins.str = ...,
|
|
3298
|
+
) -> None: ...
|
|
3299
|
+
def ClearField(self, field_name: typing_extensions.Literal["task_id", b"task_id"]) -> None: ...
|
|
3300
|
+
|
|
3301
|
+
global___ContainerReloadVolumesRequest = ContainerReloadVolumesRequest
|
|
3302
|
+
|
|
3303
|
+
class ContainerReloadVolumesResponse(google.protobuf.message.Message):
|
|
3304
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
3305
|
+
|
|
3306
|
+
def __init__(
|
|
3307
|
+
self,
|
|
3308
|
+
) -> None: ...
|
|
3309
|
+
|
|
3310
|
+
global___ContainerReloadVolumesResponse = ContainerReloadVolumesResponse
|
|
3311
|
+
|
|
3289
3312
|
class ContainerStopRequest(google.protobuf.message.Message):
|
|
3290
3313
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
3291
3314
|
|
|
@@ -5740,17 +5763,23 @@ class FunctionPutInputsItem(google.protobuf.message.Message):
|
|
|
5740
5763
|
|
|
5741
5764
|
IDX_FIELD_NUMBER: builtins.int
|
|
5742
5765
|
INPUT_FIELD_NUMBER: builtins.int
|
|
5766
|
+
R2_FAILED_FIELD_NUMBER: builtins.int
|
|
5767
|
+
R2_LATENCY_MS_FIELD_NUMBER: builtins.int
|
|
5743
5768
|
idx: builtins.int
|
|
5744
5769
|
@property
|
|
5745
5770
|
def input(self) -> global___FunctionInput: ...
|
|
5771
|
+
r2_failed: builtins.bool
|
|
5772
|
+
r2_latency_ms: builtins.int
|
|
5746
5773
|
def __init__(
|
|
5747
5774
|
self,
|
|
5748
5775
|
*,
|
|
5749
5776
|
idx: builtins.int = ...,
|
|
5750
5777
|
input: global___FunctionInput | None = ...,
|
|
5778
|
+
r2_failed: builtins.bool = ...,
|
|
5779
|
+
r2_latency_ms: builtins.int = ...,
|
|
5751
5780
|
) -> None: ...
|
|
5752
5781
|
def HasField(self, field_name: typing_extensions.Literal["input", b"input"]) -> builtins.bool: ...
|
|
5753
|
-
def ClearField(self, field_name: typing_extensions.Literal["idx", b"idx", "input", b"input"]) -> None: ...
|
|
5782
|
+
def ClearField(self, field_name: typing_extensions.Literal["idx", b"idx", "input", b"input", "r2_failed", b"r2_failed", "r2_latency_ms", b"r2_latency_ms"]) -> None: ...
|
|
5754
5783
|
|
|
5755
5784
|
global___FunctionPutInputsItem = FunctionPutInputsItem
|
|
5756
5785
|
|
modal_proto/api_pb2_grpc.py
CHANGED
|
@@ -195,6 +195,11 @@ class ModalClientStub(object):
|
|
|
195
195
|
request_serializer=modal__proto_dot_api__pb2.ContainerLogRequest.SerializeToString,
|
|
196
196
|
response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
|
|
197
197
|
)
|
|
198
|
+
self.ContainerReloadVolumes = channel.unary_unary(
|
|
199
|
+
'/modal.client.ModalClient/ContainerReloadVolumes',
|
|
200
|
+
request_serializer=modal__proto_dot_api__pb2.ContainerReloadVolumesRequest.SerializeToString,
|
|
201
|
+
response_deserializer=modal__proto_dot_api__pb2.ContainerReloadVolumesResponse.FromString,
|
|
202
|
+
)
|
|
198
203
|
self.ContainerStop = channel.unary_unary(
|
|
199
204
|
'/modal.client.ModalClient/ContainerStop',
|
|
200
205
|
request_serializer=modal__proto_dot_api__pb2.ContainerStopRequest.SerializeToString,
|
|
@@ -1025,6 +1030,12 @@ class ModalClientServicer(object):
|
|
|
1025
1030
|
context.set_details('Method not implemented!')
|
|
1026
1031
|
raise NotImplementedError('Method not implemented!')
|
|
1027
1032
|
|
|
1033
|
+
def ContainerReloadVolumes(self, request, context):
|
|
1034
|
+
"""Missing associated documentation comment in .proto file."""
|
|
1035
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
1036
|
+
context.set_details('Method not implemented!')
|
|
1037
|
+
raise NotImplementedError('Method not implemented!')
|
|
1038
|
+
|
|
1028
1039
|
def ContainerStop(self, request, context):
|
|
1029
1040
|
"""Missing associated documentation comment in .proto file."""
|
|
1030
1041
|
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
@@ -1950,6 +1961,11 @@ def add_ModalClientServicer_to_server(servicer, server):
|
|
|
1950
1961
|
request_deserializer=modal__proto_dot_api__pb2.ContainerLogRequest.FromString,
|
|
1951
1962
|
response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
|
|
1952
1963
|
),
|
|
1964
|
+
'ContainerReloadVolumes': grpc.unary_unary_rpc_method_handler(
|
|
1965
|
+
servicer.ContainerReloadVolumes,
|
|
1966
|
+
request_deserializer=modal__proto_dot_api__pb2.ContainerReloadVolumesRequest.FromString,
|
|
1967
|
+
response_serializer=modal__proto_dot_api__pb2.ContainerReloadVolumesResponse.SerializeToString,
|
|
1968
|
+
),
|
|
1953
1969
|
'ContainerStop': grpc.unary_unary_rpc_method_handler(
|
|
1954
1970
|
servicer.ContainerStop,
|
|
1955
1971
|
request_deserializer=modal__proto_dot_api__pb2.ContainerStopRequest.FromString,
|
|
@@ -3172,6 +3188,23 @@ class ModalClient(object):
|
|
|
3172
3188
|
options, channel_credentials,
|
|
3173
3189
|
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
3174
3190
|
|
|
3191
|
+
@staticmethod
|
|
3192
|
+
def ContainerReloadVolumes(request,
|
|
3193
|
+
target,
|
|
3194
|
+
options=(),
|
|
3195
|
+
channel_credentials=None,
|
|
3196
|
+
call_credentials=None,
|
|
3197
|
+
insecure=False,
|
|
3198
|
+
compression=None,
|
|
3199
|
+
wait_for_ready=None,
|
|
3200
|
+
timeout=None,
|
|
3201
|
+
metadata=None):
|
|
3202
|
+
return grpc.experimental.unary_unary(request, target, '/modal.client.ModalClient/ContainerReloadVolumes',
|
|
3203
|
+
modal__proto_dot_api__pb2.ContainerReloadVolumesRequest.SerializeToString,
|
|
3204
|
+
modal__proto_dot_api__pb2.ContainerReloadVolumesResponse.FromString,
|
|
3205
|
+
options, channel_credentials,
|
|
3206
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
3207
|
+
|
|
3175
3208
|
@staticmethod
|
|
3176
3209
|
def ContainerStop(request,
|
|
3177
3210
|
target,
|
modal_proto/api_pb2_grpc.pyi
CHANGED
|
@@ -164,6 +164,10 @@ class ModalClientStub:
|
|
|
164
164
|
modal_proto.api_pb2.ContainerLogRequest,
|
|
165
165
|
google.protobuf.empty_pb2.Empty,
|
|
166
166
|
]
|
|
167
|
+
ContainerReloadVolumes: grpc.UnaryUnaryMultiCallable[
|
|
168
|
+
modal_proto.api_pb2.ContainerReloadVolumesRequest,
|
|
169
|
+
modal_proto.api_pb2.ContainerReloadVolumesResponse,
|
|
170
|
+
]
|
|
167
171
|
ContainerStop: grpc.UnaryUnaryMultiCallable[
|
|
168
172
|
modal_proto.api_pb2.ContainerStopRequest,
|
|
169
173
|
modal_proto.api_pb2.ContainerStopResponse,
|
|
@@ -895,6 +899,12 @@ class ModalClientServicer(metaclass=abc.ABCMeta):
|
|
|
895
899
|
context: grpc.ServicerContext,
|
|
896
900
|
) -> google.protobuf.empty_pb2.Empty: ...
|
|
897
901
|
@abc.abstractmethod
|
|
902
|
+
def ContainerReloadVolumes(
|
|
903
|
+
self,
|
|
904
|
+
request: modal_proto.api_pb2.ContainerReloadVolumesRequest,
|
|
905
|
+
context: grpc.ServicerContext,
|
|
906
|
+
) -> modal_proto.api_pb2.ContainerReloadVolumesResponse: ...
|
|
907
|
+
@abc.abstractmethod
|
|
898
908
|
def ContainerStop(
|
|
899
909
|
self,
|
|
900
910
|
request: modal_proto.api_pb2.ContainerStopRequest,
|
modal_proto/modal_api_grpc.py
CHANGED
|
@@ -54,6 +54,7 @@ class ModalClientModal:
|
|
|
54
54
|
self.ContainerHeartbeat = modal.client.UnaryUnaryWrapper(grpclib_stub.ContainerHeartbeat, client, server_url)
|
|
55
55
|
self.ContainerHello = modal.client.UnaryUnaryWrapper(grpclib_stub.ContainerHello, client, server_url)
|
|
56
56
|
self.ContainerLog = modal.client.UnaryUnaryWrapper(grpclib_stub.ContainerLog, client, server_url)
|
|
57
|
+
self.ContainerReloadVolumes = modal.client.UnaryUnaryWrapper(grpclib_stub.ContainerReloadVolumes, client, server_url)
|
|
57
58
|
self.ContainerStop = modal.client.UnaryUnaryWrapper(grpclib_stub.ContainerStop, client, server_url)
|
|
58
59
|
self.DictClear = modal.client.UnaryUnaryWrapper(grpclib_stub.DictClear, client, server_url)
|
|
59
60
|
self.DictContains = modal.client.UnaryUnaryWrapper(grpclib_stub.DictContains, client, server_url)
|
modal_version/__init__.py
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|