modal 0.73.6__py3-none-any.whl → 0.73.7__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 +8 -8
- modal/client.pyi +2 -2
- {modal-0.73.6.dist-info → modal-0.73.7.dist-info}/METADATA +1 -1
- {modal-0.73.6.dist-info → modal-0.73.7.dist-info}/RECORD +9 -9
- modal_version/_version_generated.py +1 -1
- {modal-0.73.6.dist-info → modal-0.73.7.dist-info}/LICENSE +0 -0
- {modal-0.73.6.dist-info → modal-0.73.7.dist-info}/WHEEL +0 -0
- {modal-0.73.6.dist-info → modal-0.73.7.dist-info}/entry_points.txt +0 -0
- {modal-0.73.6.dist-info → modal-0.73.7.dist-info}/top_level.txt +0 -0
@@ -491,7 +491,7 @@ class _ContainerIOManager:
|
|
491
491
|
function_call_id: str,
|
492
492
|
start_index: int,
|
493
493
|
data_format: int,
|
494
|
-
|
494
|
+
serialized_messages: list[Any],
|
495
495
|
) -> None:
|
496
496
|
"""Put data onto the `data_out` stream of a function call.
|
497
497
|
|
@@ -500,7 +500,7 @@ class _ContainerIOManager:
|
|
500
500
|
still use the previous Postgres-backed system based on `FunctionPutOutputs()`.
|
501
501
|
"""
|
502
502
|
data_chunks: list[api_pb2.DataChunk] = []
|
503
|
-
for i, message_bytes in enumerate(
|
503
|
+
for i, message_bytes in enumerate(serialized_messages):
|
504
504
|
chunk = api_pb2.DataChunk(data_format=data_format, index=start_index + i) # type: ignore
|
505
505
|
if len(message_bytes) > MAX_OBJECT_SIZE_BYTES:
|
506
506
|
chunk.data_blob_id = await blob_upload(message_bytes, self._client.stub)
|
@@ -523,8 +523,8 @@ class _ContainerIOManager:
|
|
523
523
|
# If we don't sleep here for 1ms we end up with an extra call to .put_data_out().
|
524
524
|
if index == 1:
|
525
525
|
await asyncio.sleep(0.001)
|
526
|
-
|
527
|
-
total_size = len(
|
526
|
+
serialized_messages = [serialize_data_format(message, data_format)]
|
527
|
+
total_size = len(serialized_messages[0]) + 512
|
528
528
|
while total_size < 16 * 1024 * 1024: # 16 MiB, maximum size in a single message
|
529
529
|
try:
|
530
530
|
message = message_rx.get_nowait()
|
@@ -534,10 +534,10 @@ class _ContainerIOManager:
|
|
534
534
|
received_sentinel = True
|
535
535
|
break
|
536
536
|
else:
|
537
|
-
|
538
|
-
total_size += len(
|
539
|
-
await self.put_data_out(function_call_id, index, data_format,
|
540
|
-
index += len(
|
537
|
+
serialized_messages.append(serialize_data_format(message, data_format))
|
538
|
+
total_size += len(serialized_messages[-1]) + 512 # 512 bytes for estimated framing overhead
|
539
|
+
await self.put_data_out(function_call_id, index, data_format, serialized_messages)
|
540
|
+
index += len(serialized_messages)
|
541
541
|
|
542
542
|
async def _queue_create(self, size: int) -> asyncio.Queue:
|
543
543
|
"""Create a queue, on the synchronicity event loop (needed on Python 3.8 and 3.9)."""
|
modal/client.pyi
CHANGED
@@ -27,7 +27,7 @@ class _Client:
|
|
27
27
|
_snapshotted: bool
|
28
28
|
|
29
29
|
def __init__(
|
30
|
-
self, server_url: str, client_type: int, credentials: typing.Optional[tuple[str, str]], version: str = "0.73.
|
30
|
+
self, server_url: str, client_type: int, credentials: typing.Optional[tuple[str, str]], version: str = "0.73.7"
|
31
31
|
): ...
|
32
32
|
def is_closed(self) -> bool: ...
|
33
33
|
@property
|
@@ -85,7 +85,7 @@ class Client:
|
|
85
85
|
_snapshotted: bool
|
86
86
|
|
87
87
|
def __init__(
|
88
|
-
self, server_url: str, client_type: int, credentials: typing.Optional[tuple[str, str]], version: str = "0.73.
|
88
|
+
self, server_url: str, client_type: int, credentials: typing.Optional[tuple[str, str]], version: str = "0.73.7"
|
89
89
|
): ...
|
90
90
|
def is_closed(self) -> bool: ...
|
91
91
|
@property
|
@@ -21,7 +21,7 @@ modal/app.py,sha256=4tHmc1hFAL9uGj9wp-u7AOPp2mWfu4wJ-633ghFePIY,44248
|
|
21
21
|
modal/app.pyi,sha256=ppb3UmJU4oX-Ptd5v_SOQJBP1309qovKaJnH5844pFI,25885
|
22
22
|
modal/call_graph.py,sha256=1g2DGcMIJvRy-xKicuf63IVE98gJSnQsr8R_NVMptNc,2581
|
23
23
|
modal/client.py,sha256=8SQawr7P1PNUCq1UmJMUQXG2jIo4Nmdcs311XqrNLRE,15276
|
24
|
-
modal/client.pyi,sha256=
|
24
|
+
modal/client.pyi,sha256=IdooVP7M-V4EO74JFSFG91VhsFwQVm7-5IQvvu4idL0,7591
|
25
25
|
modal/cloud_bucket_mount.py,sha256=YOe9nnvSr4ZbeCn587d7_VhE9IioZYRvF9VYQTQux08,5914
|
26
26
|
modal/cloud_bucket_mount.pyi,sha256=30T3K1a89l6wzmEJ_J9iWv9SknoGqaZDx59Xs-ZQcmk,1607
|
27
27
|
modal/cls.py,sha256=kNnZrBYVXOhgEXU0rDWk2Hr-bQRrsZkMKDgC-TD_6Bs,31063
|
@@ -83,7 +83,7 @@ modal/volume.py,sha256=JAWeDvoAG95tMBv-fYIERyHsJPS_X_xGpxRRmYtb6j0,30096
|
|
83
83
|
modal/volume.pyi,sha256=kTsXarphjZILXci84LQy7EyC84eXUs5-7D62IM5q3eE,12491
|
84
84
|
modal/_runtime/__init__.py,sha256=MIEP8jhXUeGq_eCjYFcqN5b1bxBM4fdk0VESpjWR0fc,28
|
85
85
|
modal/_runtime/asgi.py,sha256=c4hmaMW1pLo-cm7ouriJjieuFm4ZF6D2LMy0638sfOs,22139
|
86
|
-
modal/_runtime/container_io_manager.py,sha256=
|
86
|
+
modal/_runtime/container_io_manager.py,sha256=QVWMCvJatd2696wsauzXl20psxCYsR0d_CHeS5ceTsU,43201
|
87
87
|
modal/_runtime/execution_context.py,sha256=E6ofm6j1POXGPxS841X3V7JU6NheVb8OkQc7JpLq4Kg,2712
|
88
88
|
modal/_runtime/telemetry.py,sha256=T1RoAGyjBDr1swiM6pPsGRSITm7LI5FDK18oNXxY08U,5163
|
89
89
|
modal/_runtime/user_code_imports.py,sha256=zl_Mq9dsrVF62x3w-iNK1YAhZKYAXeFaGpd4G7AySTc,14746
|
@@ -170,10 +170,10 @@ modal_proto/options_pb2_grpc.pyi,sha256=CImmhxHsYnF09iENPoe8S4J-n93jtgUYD2JPAc0y
|
|
170
170
|
modal_proto/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
171
171
|
modal_version/__init__.py,sha256=wiJQ53c-OMs0Xf1UeXOxQ7FwlV1VzIjnX6o-pRYZ_Pk,470
|
172
172
|
modal_version/__main__.py,sha256=2FO0yYQQwDTh6udt1h-cBnGd1c4ZyHnHSI4BksxzVac,105
|
173
|
-
modal_version/_version_generated.py,sha256=
|
174
|
-
modal-0.73.
|
175
|
-
modal-0.73.
|
176
|
-
modal-0.73.
|
177
|
-
modal-0.73.
|
178
|
-
modal-0.73.
|
179
|
-
modal-0.73.
|
173
|
+
modal_version/_version_generated.py,sha256=o0syRK3ZmTNxvzqCB10qZ2o4WuVW_Wn0HqidHCkVvJk,148
|
174
|
+
modal-0.73.7.dist-info/LICENSE,sha256=psuoW8kuDP96RQsdhzwOqi6fyWv0ct8CR6Jr7He_P_k,10173
|
175
|
+
modal-0.73.7.dist-info/METADATA,sha256=L5RUur3zp_azxXlfZQ-mqgOpuwt5LsYZOoFxhYHr6UY,2329
|
176
|
+
modal-0.73.7.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
|
177
|
+
modal-0.73.7.dist-info/entry_points.txt,sha256=An-wYgeEUnm6xzrAP9_NTSTSciYvvEWsMZILtYrvpAI,46
|
178
|
+
modal-0.73.7.dist-info/top_level.txt,sha256=1nvYbOSIKcmU50fNrpnQnrrOpj269ei3LzgB6j9xGqg,64
|
179
|
+
modal-0.73.7.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|