modal 1.0.6.dev43__py3-none-any.whl → 1.0.6.dev45__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.

@@ -267,6 +267,7 @@ class _ContainerIOManager:
267
267
  app_id: str
268
268
  function_def: api_pb2.Function
269
269
  checkpoint_id: Optional[str]
270
+ input_plane_server_url: Optional[str]
270
271
 
271
272
  calls_completed: int
272
273
  total_user_time: float
@@ -299,6 +300,12 @@ class _ContainerIOManager:
299
300
  self.function_def = container_args.function_def
300
301
  self.checkpoint_id = container_args.checkpoint_id or None
301
302
 
303
+ # We could also have the worker pass this in explicitly.
304
+ self.input_plane_server_url = None
305
+ for obj in container_args.app_layout.objects:
306
+ if obj.object_id == self.function_id:
307
+ self.input_plane_server_url = obj.function_handle_metadata.input_plane_url
308
+
302
309
  self.calls_completed = 0
303
310
  self.total_user_time = 0.0
304
311
  self.current_input_id = None
@@ -505,7 +512,12 @@ class _ContainerIOManager:
505
512
  data_chunks.append(chunk)
506
513
 
507
514
  req = api_pb2.FunctionCallPutDataRequest(function_call_id=function_call_id, data_chunks=data_chunks)
508
- await retry_transient_errors(self._client.stub.FunctionCallPutDataOut, req)
515
+
516
+ if self.input_plane_server_url:
517
+ stub = await self._client.get_stub(self.input_plane_server_url)
518
+ await retry_transient_errors(stub.FunctionCallPutDataOut, req)
519
+ else:
520
+ await retry_transient_errors(self._client.stub.FunctionCallPutDataOut, req)
509
521
 
510
522
  @asynccontextmanager
511
523
  async def generator_output_sender(
@@ -89,6 +89,7 @@ class _ContainerIOManager:
89
89
  app_id: str
90
90
  function_def: modal_proto.api_pb2.Function
91
91
  checkpoint_id: typing.Optional[str]
92
+ input_plane_server_url: typing.Optional[str]
92
93
  calls_completed: int
93
94
  total_user_time: float
94
95
  current_input_id: typing.Optional[str]
@@ -250,6 +251,7 @@ class ContainerIOManager:
250
251
  app_id: str
251
252
  function_def: modal_proto.api_pb2.Function
252
253
  checkpoint_id: typing.Optional[str]
254
+ input_plane_server_url: typing.Optional[str]
253
255
  calls_completed: int
254
256
  total_user_time: float
255
257
  current_input_id: typing.Optional[str]
modal/client.pyi CHANGED
@@ -33,7 +33,7 @@ class _Client:
33
33
  server_url: str,
34
34
  client_type: int,
35
35
  credentials: typing.Optional[tuple[str, str]],
36
- version: str = "1.0.6.dev43",
36
+ version: str = "1.0.6.dev45",
37
37
  ):
38
38
  """mdmd:hidden
39
39
  The Modal client object is not intended to be instantiated directly by users.
@@ -163,7 +163,7 @@ class Client:
163
163
  server_url: str,
164
164
  client_type: int,
165
165
  credentials: typing.Optional[tuple[str, str]],
166
- version: str = "1.0.6.dev43",
166
+ version: str = "1.0.6.dev45",
167
167
  ):
168
168
  """mdmd:hidden
169
169
  The Modal client object is not intended to be instantiated directly by users.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: modal
3
- Version: 1.0.6.dev43
3
+ Version: 1.0.6.dev45
4
4
  Summary: Python client library for Modal
5
5
  Author-email: Modal Labs <support@modal.com>
6
6
  License: Apache-2.0
@@ -22,7 +22,7 @@ modal/app.py,sha256=U0sPiHpphcRHLnoLYh2IrU2RSpRFX9BE5uHb7h42STs,47478
22
22
  modal/app.pyi,sha256=cXiSTu2bwu6csAUdkOlh7mr9tPvtaS2qWSEhlC1UxAg,43787
23
23
  modal/call_graph.py,sha256=1g2DGcMIJvRy-xKicuf63IVE98gJSnQsr8R_NVMptNc,2581
24
24
  modal/client.py,sha256=5QyM7VJjsFbHf6E91ar3A2KY9mx03wdtGlNJvfTKUVs,17087
25
- modal/client.pyi,sha256=H1iDyVFU4czznPVewL4hRQtMDtE-hw7A7xePhObRXhQ,15270
25
+ modal/client.pyi,sha256=hDA9uDXL_xPAgbzOF4eZeWvMwie4f7565Nd7rNhAUts,15270
26
26
  modal/cloud_bucket_mount.py,sha256=YOe9nnvSr4ZbeCn587d7_VhE9IioZYRvF9VYQTQux08,5914
27
27
  modal/cloud_bucket_mount.pyi,sha256=-qSfYAQvIoO_l2wsCCGTG5ZUwQieNKXdAO00yP1-LYU,7394
28
28
  modal/cls.py,sha256=B5EtzpBXemH718YvgXaYjuTKvairvqfXJ7IwLZ_6vVA,40034
@@ -82,8 +82,8 @@ modal/volume.py,sha256=7-nLtHhIY18qPJo0W23rBc2p4chf-t4Se3uJPzTSzoA,44333
82
82
  modal/volume.pyi,sha256=sjr67f0npiRzl2j3blrcMA_QSoogJAS0xLqWI06xWXQ,40727
83
83
  modal/_runtime/__init__.py,sha256=MIEP8jhXUeGq_eCjYFcqN5b1bxBM4fdk0VESpjWR0fc,28
84
84
  modal/_runtime/asgi.py,sha256=_2xSTsDD27Cit7xnMs4lzkJA2wzer2_N4Oa3BkXFzVA,22521
85
- modal/_runtime/container_io_manager.py,sha256=ANV-Tp1zJbVII0aXdj1HByUrePQPWvlfss19z2Jeogg,44752
86
- modal/_runtime/container_io_manager.pyi,sha256=yGgA-fcVwv5M8cOzLlj-44qOI1vTw9Fa3GQP7_2aXqA,22967
85
+ modal/_runtime/container_io_manager.py,sha256=rtt7tZUhduAJTOLXw8a5Oh821m_9eLcMhuRdGMj1qd8,45308
86
+ modal/_runtime/container_io_manager.pyi,sha256=_HvYZzpXX-msFDFuOvk1z6L5DBbv5Dfly16PgYDOojY,23065
87
87
  modal/_runtime/execution_context.py,sha256=73Y5zH_o-MhVCrkJXakYVlFkKqCa2CWvqoHjOfJrJGg,3034
88
88
  modal/_runtime/execution_context.pyi,sha256=IFcW1jphqTchX4fy-45rqfz91RhkZPWtIhIvLvGsNGM,2294
89
89
  modal/_runtime/gpu_memory_snapshot.py,sha256=HXgqPHQj0LARhmie_h62V95L-M2R1Kg21INUm_IStn8,7574
@@ -151,7 +151,7 @@ modal/requirements/2025.06.txt,sha256=KxDaVTOwatHvboDo4lorlgJ7-n-MfAwbPwxJ0zcJqr
151
151
  modal/requirements/PREVIEW.txt,sha256=KxDaVTOwatHvboDo4lorlgJ7-n-MfAwbPwxJ0zcJqrs,312
152
152
  modal/requirements/README.md,sha256=9tK76KP0Uph7O0M5oUgsSwEZDj5y-dcUPsnpR0Sc-Ik,854
153
153
  modal/requirements/base-images.json,sha256=JYSDAgHTl-WrV_TZW5icY-IJEnbe2eQ4CZ_KN6EOZKU,1304
154
- modal-1.0.6.dev43.dist-info/licenses/LICENSE,sha256=psuoW8kuDP96RQsdhzwOqi6fyWv0ct8CR6Jr7He_P_k,10173
154
+ modal-1.0.6.dev45.dist-info/licenses/LICENSE,sha256=psuoW8kuDP96RQsdhzwOqi6fyWv0ct8CR6Jr7He_P_k,10173
155
155
  modal_docs/__init__.py,sha256=svYKtV8HDwDCN86zbdWqyq5T8sMdGDj0PVlzc2tIxDM,28
156
156
  modal_docs/gen_cli_docs.py,sha256=c1yfBS_x--gL5bs0N4ihMwqwX8l3IBWSkBAKNNIi6bQ,3801
157
157
  modal_docs/gen_reference_docs.py,sha256=d_CQUGQ0rfw28u75I2mov9AlS773z9rG40-yq5o7g2U,6359
@@ -159,10 +159,10 @@ modal_docs/mdmd/__init__.py,sha256=svYKtV8HDwDCN86zbdWqyq5T8sMdGDj0PVlzc2tIxDM,2
159
159
  modal_docs/mdmd/mdmd.py,sha256=eW5MzrEl7mSclDo4Uv64sQ1-4IyLggldbgUJdBVLDdI,6449
160
160
  modal_docs/mdmd/signatures.py,sha256=XJaZrK7Mdepk5fdX51A8uENiLFNil85Ud0d4MH8H5f0,3218
161
161
  modal_proto/__init__.py,sha256=MIEP8jhXUeGq_eCjYFcqN5b1bxBM4fdk0VESpjWR0fc,28
162
- modal_proto/api.proto,sha256=n-FFNX32_VM2Xb-csW4tMzD8gUoO9Y37oaUIsnVWby0,99419
162
+ modal_proto/api.proto,sha256=e9z4VUvxsmGHi8SxSvMOxhpLH8qPmhwMW8rIK7t3Tms,99416
163
163
  modal_proto/api_grpc.py,sha256=F7Hu-1Yg7p5a2SbKw9yR4AgpyU0ntvgZTaVbIJMR0DE,122366
164
- modal_proto/api_pb2.py,sha256=KHJ1MW9AWDglhXHunKlvfxWO8cD3q3ikbgr_5REFAX4,349772
165
- modal_proto/api_pb2.pyi,sha256=fzYQPOS5wiyAwQLU7brlXa9gzDzkKmX2OuWO7r5LT7M,476890
164
+ modal_proto/api_pb2.py,sha256=FvAcpNT3sOqmCZIW6Sw_67zGKOpYZd6AxlihRolC1h8,349680
165
+ modal_proto/api_pb2.pyi,sha256=PUhlvse2LZV6v6rOEMyaPOlT852GWsy2P5SrLHiGAG8,476220
166
166
  modal_proto/api_pb2_grpc.py,sha256=pIFrNmCOgRRcIW8A1Ekja9Po6fHcsj54ExDZFzTpYe4,264347
167
167
  modal_proto/api_pb2_grpc.pyi,sha256=vtxrQ9xnQG6ZRXjp2uk43Mb7wV7F4qGYuVl5JUBc8jI,61968
168
168
  modal_proto/modal_api_grpc.py,sha256=Yl_fGbSIuX2FAEnURkYpKqshs7kbNqtz5HlTJEXkbhE,18487
@@ -174,10 +174,10 @@ modal_proto/options_pb2.pyi,sha256=l7DBrbLO7q3Ir-XDkWsajm0d0TQqqrfuX54i4BMpdQg,1
174
174
  modal_proto/options_pb2_grpc.py,sha256=1oboBPFxaTEXt9Aw7EAj8gXHDCNMhZD2VXqocC9l_gk,159
175
175
  modal_proto/options_pb2_grpc.pyi,sha256=CImmhxHsYnF09iENPoe8S4J-n93jtgUYD2JPAc0yJSI,247
176
176
  modal_proto/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
177
- modal_version/__init__.py,sha256=klV9G0yAB9y8txuZdoUQ7A0SW0p5xy7MKFtEVdQSE8M,121
177
+ modal_version/__init__.py,sha256=JY0fkT6tqBmnGaYvvQV2eCgUhveP0aGxHJtKAg85hic,121
178
178
  modal_version/__main__.py,sha256=2FO0yYQQwDTh6udt1h-cBnGd1c4ZyHnHSI4BksxzVac,105
179
- modal-1.0.6.dev43.dist-info/METADATA,sha256=sMo9KFYjFLRtQSPc7cs6nkSU1TY1ZtmfwMaBEaqAaxg,2462
180
- modal-1.0.6.dev43.dist-info/WHEEL,sha256=1tXe9gY0PYatrMPMDd6jXqjfpz_B-Wqm32CPfRC58XU,91
181
- modal-1.0.6.dev43.dist-info/entry_points.txt,sha256=An-wYgeEUnm6xzrAP9_NTSTSciYvvEWsMZILtYrvpAI,46
182
- modal-1.0.6.dev43.dist-info/top_level.txt,sha256=4BWzoKYREKUZ5iyPzZpjqx4G8uB5TWxXPDwibLcVa7k,43
183
- modal-1.0.6.dev43.dist-info/RECORD,,
179
+ modal-1.0.6.dev45.dist-info/METADATA,sha256=RnvBpwY4h1HoSbjm6DyZBeHahy2nKBz_o-itSLE78WA,2462
180
+ modal-1.0.6.dev45.dist-info/WHEEL,sha256=1tXe9gY0PYatrMPMDd6jXqjfpz_B-Wqm32CPfRC58XU,91
181
+ modal-1.0.6.dev45.dist-info/entry_points.txt,sha256=An-wYgeEUnm6xzrAP9_NTSTSciYvvEWsMZILtYrvpAI,46
182
+ modal-1.0.6.dev45.dist-info/top_level.txt,sha256=4BWzoKYREKUZ5iyPzZpjqx4G8uB5TWxXPDwibLcVa7k,43
183
+ modal-1.0.6.dev45.dist-info/RECORD,,
modal_proto/api.proto CHANGED
@@ -1487,7 +1487,7 @@ message FunctionCallCancelRequest {
1487
1487
  message FunctionCallGetDataRequest {
1488
1488
  string function_call_id = 1;
1489
1489
  uint64 last_index = 2;
1490
- string attempt_token = 3;
1490
+ reserved 3; // attempt_token
1491
1491
  }
1492
1492
 
1493
1493
  message FunctionCallInfo {
@@ -1516,7 +1516,7 @@ message FunctionCallListResponse {
1516
1516
  message FunctionCallPutDataRequest {
1517
1517
  string function_call_id = 1;
1518
1518
  repeated DataChunk data_chunks = 2;
1519
- optional string attempt_token = 3;
1519
+ reserved 3; // attempt_token
1520
1520
  }
1521
1521
 
1522
1522
  message FunctionCreateRequest {