modal 1.1.5.dev83__py3-none-any.whl → 1.1.5.dev85__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/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.1.5.dev83",
36
+ version: str = "1.1.5.dev85",
37
37
  ):
38
38
  """mdmd:hidden
39
39
  The Modal client object is not intended to be instantiated directly by users.
@@ -164,7 +164,7 @@ class Client:
164
164
  server_url: str,
165
165
  client_type: int,
166
166
  credentials: typing.Optional[tuple[str, str]],
167
- version: str = "1.1.5.dev83",
167
+ version: str = "1.1.5.dev85",
168
168
  ):
169
169
  """mdmd:hidden
170
170
  The Modal client object is not intended to be instantiated directly by users.
modal/parallel_map.py CHANGED
@@ -671,8 +671,8 @@ async def _map_invocation_inputplane(
671
671
  last_entry_id = ""
672
672
 
673
673
  # The input-plane server returns this after the first request.
674
- function_call_id = None
675
- function_call_id_received = asyncio.Event()
674
+ map_token = None
675
+ map_token_received = asyncio.Event()
676
676
 
677
677
  # Single priority queue that holds *both* fresh inputs (timestamp == now)
678
678
  # and future retries (timestamp > now).
@@ -751,7 +751,7 @@ async def _map_invocation_inputplane(
751
751
  yield
752
752
 
753
753
  async def pump_inputs():
754
- nonlocal function_call_id, max_inputs_outstanding
754
+ nonlocal map_token, max_inputs_outstanding
755
755
  async for batch in queue_batch_iterator(queue, max_batch_size=MAP_INVOCATION_CHUNK_SIZE):
756
756
  # Convert the queued items into the proto format expected by the RPC.
757
757
  request_items: list[api_pb2.MapStartOrContinueItem] = [
@@ -763,7 +763,7 @@ async def _map_invocation_inputplane(
763
763
  # Build request
764
764
  request = api_pb2.MapStartOrContinueRequest(
765
765
  function_id=function.object_id,
766
- function_call_id=function_call_id,
766
+ map_token=map_token,
767
767
  parent_input_id=current_input_id() or "",
768
768
  items=request_items,
769
769
  )
@@ -789,9 +789,9 @@ async def _map_invocation_inputplane(
789
789
 
790
790
  # Set the function call id and actual retry policy with the data from the first response.
791
791
  # This conditional is skipped for subsequent iterations of this for-loop.
792
- if function_call_id is None:
793
- function_call_id = response.function_call_id
794
- function_call_id_received.set()
792
+ if map_token is None:
793
+ map_token = response.map_token
794
+ map_token_received.set()
795
795
  max_inputs_outstanding = response.max_inputs_outstanding or MAX_INPUTS_OUTSTANDING_DEFAULT
796
796
  map_items_manager.set_retry_policy(response.retry_policy)
797
797
  # Update the retry policy for the first batch of inputs.
@@ -804,8 +804,8 @@ async def _map_invocation_inputplane(
804
804
  nonlocal last_entry_id # shared with get_all_outputs
805
805
  try:
806
806
  while not map_done_event.is_set():
807
- if function_call_id is None:
808
- await function_call_id_received.wait()
807
+ if map_token is None:
808
+ await map_token_received.wait()
809
809
  continue
810
810
 
811
811
  sleep_task = asyncio.create_task(asyncio.sleep(1))
@@ -847,12 +847,12 @@ async def _map_invocation_inputplane(
847
847
  last_entry_id
848
848
 
849
849
  while not map_done_event.is_set():
850
- if function_call_id is None:
851
- await function_call_id_received.wait()
850
+ if map_token is None:
851
+ await map_token_received.wait()
852
852
  continue
853
853
 
854
854
  request = api_pb2.MapAwaitRequest(
855
- function_call_id=function_call_id,
855
+ map_token=map_token,
856
856
  last_entry_id=last_entry_id,
857
857
  requested_at=time.time(),
858
858
  timeout=OUTPUTS_TIMEOUT,
@@ -963,7 +963,7 @@ async def _map_invocation_inputplane(
963
963
  f"Map stats:\nsuccessful_completions={successful_completions} failed_completions={failed_completions} "
964
964
  f"no_context_duplicates={no_context_duplicates} stale_retry_duplicates={stale_retry_duplicates} "
965
965
  f"already_complete_duplicates={already_complete_duplicates} retried_outputs={retried_outputs} "
966
- f"function_call_id={function_call_id} max_inputs_outstanding={max_inputs_outstanding} "
966
+ f"map_token={map_token} max_inputs_outstanding={max_inputs_outstanding} "
967
967
  f"map_items_manager_size={len(map_items_manager)} input_queue_size={input_queue_size}"
968
968
  )
969
969
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: modal
3
- Version: 1.1.5.dev83
3
+ Version: 1.1.5.dev85
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=W-24GIIBTKBqBWF6n4aB_heUhCb8d4KJfGF8oWteZn8,52454
22
22
  modal/app.pyi,sha256=6wlYK9nNp0GuHXyUxGmcZ6J92EjsWS-KK6KRuejqXEY,49718
23
23
  modal/call_graph.py,sha256=1g2DGcMIJvRy-xKicuf63IVE98gJSnQsr8R_NVMptNc,2581
24
24
  modal/client.py,sha256=kyAIVB3Ay-XKJizQ_1ufUFB__EagV0MLmHJpyYyJ7J0,18636
25
- modal/client.pyi,sha256=57Tez1O5fiSJA40Rrnv6rO0MZah5jWMlUEPSZeFapjc,15831
25
+ modal/client.pyi,sha256=aRnkpViJuBgwVl_6llqSY94GchQwCUf-pbreLmF3dMQ,15831
26
26
  modal/cloud_bucket_mount.py,sha256=I2GRXYhOWLIz2kJZjXu75jAm9EJkBNcutGc6jR2ReUw,5928
27
27
  modal/cloud_bucket_mount.pyi,sha256=VuUOipMIHqFXMkD-3g2bsoqpSxV5qswlFHDOqPQzYAo,7405
28
28
  modal/cls.py,sha256=IZG9gLlssbhTgIn6iSEmBSKkbbkst3skASMae-59FII,40239
@@ -52,7 +52,7 @@ modal/network_file_system.pyi,sha256=zF4PIaiuIaC4OLQ0YCj1e2O3uepW9-2Jo1T3blc7RVg
52
52
  modal/object.py,sha256=bTeskuY8JFrESjU4_UL_nTwYlBQdOLmVaOX3X6EMxsg,164
53
53
  modal/object.pyi,sha256=qlyVVMezW3XgJe_iqhtzWRSki3Nuk-KrpXc1g-r8ujA,6944
54
54
  modal/output.py,sha256=q4T9uHduunj4NwY-YSwkHGgjZlCXMuJbfQ5UFaAGRAc,1968
55
- modal/parallel_map.py,sha256=BkAQER2p3uus2VaODO6r_NhYDGtrh6dBF4AK2AhfIGI,69110
55
+ modal/parallel_map.py,sha256=E5UYVszgLR8ppOUOqCgkqgn5A93yVMvJ5YmgGgrjyQo,68991
56
56
  modal/parallel_map.pyi,sha256=NZrtfZljig59hcMKU7Cz8lYZZFOiwK9l7oWrBtX6Oy8,15838
57
57
  modal/partial_function.py,sha256=aIdlGfTjjgqY6Fpr-biCjvRU9W542_S5N2xkNN_rYGM,1127
58
58
  modal/partial_function.pyi,sha256=lqqOzZ9-QvHTDWKQ_oAYYOvsXgTOBKhO9u-RI98JbUk,13986
@@ -153,7 +153,7 @@ modal/experimental/__init__.py,sha256=9gkVuDmu3m4TlKoU3MzEtTOemUSs8EEOWba40s7Aa0
153
153
  modal/experimental/flash.py,sha256=C4sef08rARYFllsgtqukFmYL18SZW0_JpMS0BejDcUs,28552
154
154
  modal/experimental/flash.pyi,sha256=vV_OQhtdrPn8SW0XrBK-aLLHHIvxAzLzwFbWrke-m74,15463
155
155
  modal/experimental/ipython.py,sha256=TrCfmol9LGsRZMeDoeMPx3Hv3BFqQhYnmD_iH0pqdhk,2904
156
- modal-1.1.5.dev83.dist-info/licenses/LICENSE,sha256=psuoW8kuDP96RQsdhzwOqi6fyWv0ct8CR6Jr7He_P_k,10173
156
+ modal-1.1.5.dev85.dist-info/licenses/LICENSE,sha256=psuoW8kuDP96RQsdhzwOqi6fyWv0ct8CR6Jr7He_P_k,10173
157
157
  modal_docs/__init__.py,sha256=svYKtV8HDwDCN86zbdWqyq5T8sMdGDj0PVlzc2tIxDM,28
158
158
  modal_docs/gen_cli_docs.py,sha256=c1yfBS_x--gL5bs0N4ihMwqwX8l3IBWSkBAKNNIi6bQ,3801
159
159
  modal_docs/gen_reference_docs.py,sha256=d_CQUGQ0rfw28u75I2mov9AlS773z9rG40-yq5o7g2U,6359
@@ -182,10 +182,10 @@ modal_proto/sandbox_router_pb2.py,sha256=QTT32WuusbyZwciNo-UUa6wl9-juOE2xRlv0JrB
182
182
  modal_proto/sandbox_router_pb2.pyi,sha256=Ihf7LHmh0V5XfMHwYQobZiQ1_3xPoDJgIueyUxC4fMQ,15088
183
183
  modal_proto/sandbox_router_pb2_grpc.py,sha256=8kPFo84rpRHfeRdZuHyoWuuIAphGmjM0s3ygGJSBVck,10006
184
184
  modal_proto/sandbox_router_pb2_grpc.pyi,sha256=iAr1ornlIEYP7pfrFMrw91-F3PNs7amH6z6J2oCwYxk,3276
185
- modal_version/__init__.py,sha256=AspLz1bnxO9dw0LzXWLGTLKiv1HAt5dF6lPm9Y0tYAk,121
185
+ modal_version/__init__.py,sha256=G-6O5v5_bRNZ0lF2ssWrC8NF6XamSdMRbNoAo35d-X4,121
186
186
  modal_version/__main__.py,sha256=2FO0yYQQwDTh6udt1h-cBnGd1c4ZyHnHSI4BksxzVac,105
187
- modal-1.1.5.dev83.dist-info/METADATA,sha256=hZOgpV32Kz6qfRnvjNZxpsggjN7bTQwwesbrvaMJ3Aw,2481
188
- modal-1.1.5.dev83.dist-info/WHEEL,sha256=1tXe9gY0PYatrMPMDd6jXqjfpz_B-Wqm32CPfRC58XU,91
189
- modal-1.1.5.dev83.dist-info/entry_points.txt,sha256=An-wYgeEUnm6xzrAP9_NTSTSciYvvEWsMZILtYrvpAI,46
190
- modal-1.1.5.dev83.dist-info/top_level.txt,sha256=4BWzoKYREKUZ5iyPzZpjqx4G8uB5TWxXPDwibLcVa7k,43
191
- modal-1.1.5.dev83.dist-info/RECORD,,
187
+ modal-1.1.5.dev85.dist-info/METADATA,sha256=lo-4lmYgS3DjL6ki_qmYZWE93BIDY3BWCGp6c1RqRZ8,2481
188
+ modal-1.1.5.dev85.dist-info/WHEEL,sha256=1tXe9gY0PYatrMPMDd6jXqjfpz_B-Wqm32CPfRC58XU,91
189
+ modal-1.1.5.dev85.dist-info/entry_points.txt,sha256=An-wYgeEUnm6xzrAP9_NTSTSciYvvEWsMZILtYrvpAI,46
190
+ modal-1.1.5.dev85.dist-info/top_level.txt,sha256=4BWzoKYREKUZ5iyPzZpjqx4G8uB5TWxXPDwibLcVa7k,43
191
+ modal-1.1.5.dev85.dist-info/RECORD,,
modal_version/__init__.py CHANGED
@@ -1,4 +1,4 @@
1
1
  # Copyright Modal Labs 2025
2
2
  """Supplies the current version of the modal client library."""
3
3
 
4
- __version__ = "1.1.5.dev83"
4
+ __version__ = "1.1.5.dev85"