modal 0.69.1__py3-none-any.whl → 0.69.2__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/_container_entrypoint.py +1 -1
- modal/_runtime/container_io_manager.py +8 -5
- modal/client.pyi +2 -2
- {modal-0.69.1.dist-info → modal-0.69.2.dist-info}/METADATA +1 -1
- {modal-0.69.1.dist-info → modal-0.69.2.dist-info}/RECORD +10 -10
- modal_version/_version_generated.py +1 -1
- {modal-0.69.1.dist-info → modal-0.69.2.dist-info}/LICENSE +0 -0
- {modal-0.69.1.dist-info → modal-0.69.2.dist-info}/WHEEL +0 -0
- {modal-0.69.1.dist-info → modal-0.69.2.dist-info}/entry_points.txt +0 -0
- {modal-0.69.1.dist-info → modal-0.69.2.dist-info}/top_level.txt +0 -0
modal/_container_entrypoint.py
CHANGED
@@ -464,7 +464,7 @@ def main(container_args: api_pb2.ContainerArguments, client: Client):
|
|
464
464
|
batch_wait_ms = function_def.batch_linger_ms or 0
|
465
465
|
|
466
466
|
# Get ids and metadata for objects (primarily functions and classes) on the app
|
467
|
-
container_app: RunningApp = container_io_manager.get_app_objects()
|
467
|
+
container_app: RunningApp = container_io_manager.get_app_objects(container_args.app_layout)
|
468
468
|
|
469
469
|
# Initialize objects on the app.
|
470
470
|
# This is basically only functions and classes - anything else is deprecated and will be unsupported soon
|
@@ -449,14 +449,17 @@ class _ContainerIOManager:
|
|
449
449
|
|
450
450
|
await asyncio.sleep(DYNAMIC_CONCURRENCY_INTERVAL_SECS)
|
451
451
|
|
452
|
-
async def get_app_objects(self) -> RunningApp:
|
453
|
-
|
454
|
-
|
455
|
-
|
452
|
+
async def get_app_objects(self, app_layout: api_pb2.AppLayout) -> RunningApp:
|
453
|
+
if len(app_layout.objects) == 0:
|
454
|
+
# TODO(erikbern): this is a temporary fallback until we flip the switch and the worker provides arguments
|
455
|
+
req = api_pb2.AppGetLayoutRequest(app_id=self.app_id)
|
456
|
+
resp = await retry_transient_errors(self._client.stub.AppGetLayout, req)
|
457
|
+
app_layout = resp.app_layout
|
458
|
+
logger.debug(f"AppGetLayout received {len(app_layout.objects)} objects for app {self.app_id}")
|
456
459
|
|
457
460
|
return running_app_from_layout(
|
458
461
|
self.app_id,
|
459
|
-
|
462
|
+
app_layout,
|
460
463
|
self._client,
|
461
464
|
environment_name=self._environment_name,
|
462
465
|
)
|
modal/client.pyi
CHANGED
@@ -26,7 +26,7 @@ class _Client:
|
|
26
26
|
_stub: typing.Optional[modal_proto.api_grpc.ModalClientStub]
|
27
27
|
|
28
28
|
def __init__(
|
29
|
-
self, server_url: str, client_type: int, credentials: typing.Optional[tuple[str, str]], version: str = "0.69.
|
29
|
+
self, server_url: str, client_type: int, credentials: typing.Optional[tuple[str, str]], version: str = "0.69.2"
|
30
30
|
): ...
|
31
31
|
def is_closed(self) -> bool: ...
|
32
32
|
@property
|
@@ -81,7 +81,7 @@ class Client:
|
|
81
81
|
_stub: typing.Optional[modal_proto.api_grpc.ModalClientStub]
|
82
82
|
|
83
83
|
def __init__(
|
84
|
-
self, server_url: str, client_type: int, credentials: typing.Optional[tuple[str, str]], version: str = "0.69.
|
84
|
+
self, server_url: str, client_type: int, credentials: typing.Optional[tuple[str, str]], version: str = "0.69.2"
|
85
85
|
): ...
|
86
86
|
def is_closed(self) -> bool: ...
|
87
87
|
@property
|
@@ -2,7 +2,7 @@ modal/__init__.py,sha256=3NJLLHb0TRc2tc68kf8NHzORx38GbtbZvPEWDWrQ6N4,2234
|
|
2
2
|
modal/__main__.py,sha256=scYhGFqh8OJcVDo-VOxIT6CCwxOgzgflYWMnIZiMRqE,2871
|
3
3
|
modal/_clustered_functions.py,sha256=kTf-9YBXY88NutC1akI-gCbvf01RhMPCw-zoOI_YIUE,2700
|
4
4
|
modal/_clustered_functions.pyi,sha256=vllkegc99A0jrUOWa8mdlSbdp6uz36TsHhGxysAOpaQ,771
|
5
|
-
modal/_container_entrypoint.py,sha256=
|
5
|
+
modal/_container_entrypoint.py,sha256=7EAMe-85a-uWDaRAjRy9m4nnCAmjRJnh9x7FgW_QjLU,28935
|
6
6
|
modal/_ipython.py,sha256=TW1fkVOmZL3YYqdS2YlM1hqpf654Yf8ZyybHdBnlhSw,301
|
7
7
|
modal/_location.py,sha256=S3lSxIU3h9HkWpkJ3Pwo0pqjIOSB1fjeSgUsY3x7eec,1202
|
8
8
|
modal/_output.py,sha256=0fWX_KQwhER--U81ys16CL-pA5A-LN20C0EZjElKGJQ,25410
|
@@ -19,7 +19,7 @@ modal/app.py,sha256=JWefPs4yB70BKQwSZejB_4_muhxn63cC9UmnNvpQ9XY,45526
|
|
19
19
|
modal/app.pyi,sha256=FYPCEJNhof4YF6HIuNP_2yG6s2PgZnKW9tO1hFE6sfA,25194
|
20
20
|
modal/call_graph.py,sha256=1g2DGcMIJvRy-xKicuf63IVE98gJSnQsr8R_NVMptNc,2581
|
21
21
|
modal/client.py,sha256=JAnd4-GCN093BwkvOFAK5a6iy5ycxofjpUncMxlrIMw,15253
|
22
|
-
modal/client.pyi,sha256=
|
22
|
+
modal/client.pyi,sha256=8kavXFZwpujj_fyLm28-OFOfpYyDAglsImnwppyVXxQ,7278
|
23
23
|
modal/cloud_bucket_mount.py,sha256=G7T7jWLD0QkmrfKR75mSTwdUZ2xNfj7pkVqb4ipmxmI,5735
|
24
24
|
modal/cloud_bucket_mount.pyi,sha256=CEi7vrH3kDUF4LAy4qP6tfImy2UJuFRcRbsgRNM1wo8,1403
|
25
25
|
modal/cls.py,sha256=3hjb0JcoPjxKZNeK22f5rR43bZRBjoRI7_EMZXY7YrE,31172
|
@@ -78,7 +78,7 @@ modal/volume.py,sha256=T-pLxCYqmqRO6OolpAXlPxomMu0RWjti2e4kUpaj2cQ,29229
|
|
78
78
|
modal/volume.pyi,sha256=eekb2dnAAwFK_NO9ciAOOTthl8NP1iAmMFrCGgjDA2k,11100
|
79
79
|
modal/_runtime/__init__.py,sha256=MIEP8jhXUeGq_eCjYFcqN5b1bxBM4fdk0VESpjWR0fc,28
|
80
80
|
modal/_runtime/asgi.py,sha256=Mjs859pSgOmtZL-YmEsSKN557v1A2Ax_5-ERgPfj55E,21920
|
81
|
-
modal/_runtime/container_io_manager.py,sha256=
|
81
|
+
modal/_runtime/container_io_manager.py,sha256=7Xyi_lKmCAsVXRmxXYMUZAQPm8Qnu0vkP_FULktFM6A,43931
|
82
82
|
modal/_runtime/execution_context.py,sha256=E6ofm6j1POXGPxS841X3V7JU6NheVb8OkQc7JpLq4Kg,2712
|
83
83
|
modal/_runtime/telemetry.py,sha256=T1RoAGyjBDr1swiM6pPsGRSITm7LI5FDK18oNXxY08U,5163
|
84
84
|
modal/_runtime/user_code_imports.py,sha256=n4CQOojzSdf0jwSKSy6MEnVX3IWl3t3Dq54-x9VS2Ds,14663
|
@@ -165,10 +165,10 @@ modal_proto/options_pb2_grpc.pyi,sha256=CImmhxHsYnF09iENPoe8S4J-n93jtgUYD2JPAc0y
|
|
165
165
|
modal_proto/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
166
166
|
modal_version/__init__.py,sha256=aBl2c-5ZPst-0n_E9DeJEfYYSifFGrDOwo9tpDwhyK8,470
|
167
167
|
modal_version/__main__.py,sha256=2FO0yYQQwDTh6udt1h-cBnGd1c4ZyHnHSI4BksxzVac,105
|
168
|
-
modal_version/_version_generated.py,sha256=
|
169
|
-
modal-0.69.
|
170
|
-
modal-0.69.
|
171
|
-
modal-0.69.
|
172
|
-
modal-0.69.
|
173
|
-
modal-0.69.
|
174
|
-
modal-0.69.
|
168
|
+
modal_version/_version_generated.py,sha256=tRKJkUG5jXmmMESPTZ_2SdjmPG8SWmbjeCYjD5Pc9Ek,148
|
169
|
+
modal-0.69.2.dist-info/LICENSE,sha256=psuoW8kuDP96RQsdhzwOqi6fyWv0ct8CR6Jr7He_P_k,10173
|
170
|
+
modal-0.69.2.dist-info/METADATA,sha256=sUCcaTOsI6EI364Y3ddMZEy6uooqrAVNnkOKbV2gLRU,2328
|
171
|
+
modal-0.69.2.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
|
172
|
+
modal-0.69.2.dist-info/entry_points.txt,sha256=An-wYgeEUnm6xzrAP9_NTSTSciYvvEWsMZILtYrvpAI,46
|
173
|
+
modal-0.69.2.dist-info/top_level.txt,sha256=1nvYbOSIKcmU50fNrpnQnrrOpj269ei3LzgB6j9xGqg,64
|
174
|
+
modal-0.69.2.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|