modal 1.6.5.dev0__py3-none-any.whl → 1.6.5.dev2__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/client.pyi +2 -2
- modal/functions.pyi +6 -6
- modal/parallel_map.py +6 -4
- {modal-1.6.5.dev0.dist-info → modal-1.6.5.dev2.dist-info}/METADATA +1 -1
- {modal-1.6.5.dev0.dist-info → modal-1.6.5.dev2.dist-info}/RECORD +12 -12
- modal_proto/api_pb2.py +1146 -1146
- modal_proto/api_pb2.pyi +19 -3
- modal_version/__init__.py +1 -1
- {modal-1.6.5.dev0.dist-info → modal-1.6.5.dev2.dist-info}/WHEEL +0 -0
- {modal-1.6.5.dev0.dist-info → modal-1.6.5.dev2.dist-info}/entry_points.txt +0 -0
- {modal-1.6.5.dev0.dist-info → modal-1.6.5.dev2.dist-info}/licenses/LICENSE +0 -0
- {modal-1.6.5.dev0.dist-info → modal-1.6.5.dev2.dist-info}/top_level.txt +0 -0
modal/client.pyi
CHANGED
|
@@ -85,7 +85,7 @@ class _Client:
|
|
|
85
85
|
server_url: str,
|
|
86
86
|
client_type: int,
|
|
87
87
|
credentials: typing.Optional[tuple[str, str]],
|
|
88
|
-
version: str = "1.6.5.
|
|
88
|
+
version: str = "1.6.5.dev2",
|
|
89
89
|
*,
|
|
90
90
|
oauth_credentials: typing.Optional[_OAuthCredentials] = None,
|
|
91
91
|
):
|
|
@@ -310,7 +310,7 @@ class Client:
|
|
|
310
310
|
server_url: str,
|
|
311
311
|
client_type: int,
|
|
312
312
|
credentials: typing.Optional[tuple[str, str]],
|
|
313
|
-
version: str = "1.6.5.
|
|
313
|
+
version: str = "1.6.5.dev2",
|
|
314
314
|
*,
|
|
315
315
|
oauth_credentials: typing.Optional[_OAuthCredentials] = None,
|
|
316
316
|
):
|
modal/functions.pyi
CHANGED
|
@@ -627,7 +627,7 @@ class Function(
|
|
|
627
627
|
|
|
628
628
|
_call_generator: ___call_generator_spec
|
|
629
629
|
|
|
630
|
-
class __remote_spec(typing_extensions.Protocol[
|
|
630
|
+
class __remote_spec(typing_extensions.Protocol[P_INNER, ReturnType_INNER]):
|
|
631
631
|
def __call__(self, /, *args: P_INNER.args, **kwargs: P_INNER.kwargs) -> ReturnType_INNER:
|
|
632
632
|
"""Calls the function remotely, executing it with the given arguments and returning the execution's result.
|
|
633
633
|
|
|
@@ -652,7 +652,7 @@ class Function(
|
|
|
652
652
|
"""
|
|
653
653
|
...
|
|
654
654
|
|
|
655
|
-
remote: __remote_spec[modal._functions.
|
|
655
|
+
remote: __remote_spec[modal._functions.P, modal._functions.ReturnType]
|
|
656
656
|
|
|
657
657
|
class __remote_gen_spec(typing_extensions.Protocol):
|
|
658
658
|
def __call__(self, /, *args, **kwargs) -> typing.Generator[typing.Any, None, None]:
|
|
@@ -702,7 +702,7 @@ class Function(
|
|
|
702
702
|
"""
|
|
703
703
|
...
|
|
704
704
|
|
|
705
|
-
class ___experimental_spawn_spec(typing_extensions.Protocol[
|
|
705
|
+
class ___experimental_spawn_spec(typing_extensions.Protocol[P_INNER, ReturnType_INNER]):
|
|
706
706
|
def __call__(self, /, *args: P_INNER.args, **kwargs: P_INNER.kwargs) -> FunctionCall[ReturnType_INNER]:
|
|
707
707
|
"""[Experimental] Calls the function with the given arguments, without waiting for the results.
|
|
708
708
|
|
|
@@ -735,7 +735,7 @@ class Function(
|
|
|
735
735
|
"""
|
|
736
736
|
...
|
|
737
737
|
|
|
738
|
-
_experimental_spawn: ___experimental_spawn_spec[modal._functions.
|
|
738
|
+
_experimental_spawn: ___experimental_spawn_spec[modal._functions.P, modal._functions.ReturnType]
|
|
739
739
|
|
|
740
740
|
class ___spawn_map_inner_spec(typing_extensions.Protocol[P_INNER]):
|
|
741
741
|
def __call__(self, /, *args: P_INNER.args, **kwargs: P_INNER.kwargs) -> None: ...
|
|
@@ -743,7 +743,7 @@ class Function(
|
|
|
743
743
|
|
|
744
744
|
_spawn_map_inner: ___spawn_map_inner_spec[modal._functions.P]
|
|
745
745
|
|
|
746
|
-
class __spawn_spec(typing_extensions.Protocol[
|
|
746
|
+
class __spawn_spec(typing_extensions.Protocol[P_INNER, ReturnType_INNER]):
|
|
747
747
|
def __call__(self, /, *args: P_INNER.args, **kwargs: P_INNER.kwargs) -> FunctionCall[ReturnType_INNER]:
|
|
748
748
|
"""Calls the function with the given arguments, without waiting for the results.
|
|
749
749
|
|
|
@@ -776,7 +776,7 @@ class Function(
|
|
|
776
776
|
"""
|
|
777
777
|
...
|
|
778
778
|
|
|
779
|
-
spawn: __spawn_spec[modal._functions.
|
|
779
|
+
spawn: __spawn_spec[modal._functions.P, modal._functions.ReturnType]
|
|
780
780
|
|
|
781
781
|
@property
|
|
782
782
|
def _raw_f_(self) -> collections.abc.Callable[..., typing.Any]: ...
|
modal/parallel_map.py
CHANGED
|
@@ -659,7 +659,7 @@ async def _map_invocation_inputplane(
|
|
|
659
659
|
|
|
660
660
|
# The input-plane server returns this after the first request.
|
|
661
661
|
map_token = None
|
|
662
|
-
|
|
662
|
+
map_token_or_done = asyncio.Event()
|
|
663
663
|
|
|
664
664
|
input_queue: asyncio.Queue[api_pb2.MapStartOrContinueItem | None] = asyncio.Queue()
|
|
665
665
|
retry_queue: TimestampPriorityQueue[api_pb2.MapStartOrContinueItem] = TimestampPriorityQueue()
|
|
@@ -702,6 +702,8 @@ async def _map_invocation_inputplane(
|
|
|
702
702
|
|
|
703
703
|
if have_all_inputs and outputs_completed >= inputs_created:
|
|
704
704
|
map_done_event.set()
|
|
705
|
+
# An empty map finishes without ever sending a request, so no map token arrives.
|
|
706
|
+
map_token_or_done.set()
|
|
705
707
|
|
|
706
708
|
async def create_input(argskwargs):
|
|
707
709
|
idx = inputs_created + 1 # 1-indexed map call idx
|
|
@@ -766,7 +768,7 @@ async def _map_invocation_inputplane(
|
|
|
766
768
|
# Set the function call id and actual retry policy with the data from the first response.
|
|
767
769
|
if map_token is None:
|
|
768
770
|
map_token = response.map_token
|
|
769
|
-
|
|
771
|
+
map_token_or_done.set()
|
|
770
772
|
max_inputs_outstanding = response.max_inputs_outstanding or MAX_INPUTS_OUTSTANDING_DEFAULT
|
|
771
773
|
map_items_manager.set_retry_policy(response.retry_policy)
|
|
772
774
|
# Update the retry policy for the first batch of inputs.
|
|
@@ -796,7 +798,7 @@ async def _map_invocation_inputplane(
|
|
|
796
798
|
try:
|
|
797
799
|
while not map_done_event.is_set():
|
|
798
800
|
if map_token is None:
|
|
799
|
-
await
|
|
801
|
+
await map_token_or_done.wait()
|
|
800
802
|
continue
|
|
801
803
|
|
|
802
804
|
sleep_task = asyncio.create_task(asyncio.sleep(1))
|
|
@@ -839,7 +841,7 @@ async def _map_invocation_inputplane(
|
|
|
839
841
|
|
|
840
842
|
while not map_done_event.is_set():
|
|
841
843
|
if map_token is None:
|
|
842
|
-
await
|
|
844
|
+
await map_token_or_done.wait()
|
|
843
845
|
continue
|
|
844
846
|
|
|
845
847
|
request = api_pb2.MapAwaitRequest(
|
|
@@ -39,7 +39,7 @@ modal/billing.py,sha256=E1-P_P8bJFLp-bTaggYd4BaaViImPB5UdtXiY8VeAZQ,390
|
|
|
39
39
|
modal/billing.pyi,sha256=4m7VLYNS8IiJ2I3CJx0awvrOM6BILWRVLfdeqtAYr8M,7189
|
|
40
40
|
modal/call_graph.py,sha256=XGALIDn1bLchWo_goyX23bcPjzCZcfqKUo8INIfDapo,1775
|
|
41
41
|
modal/client.py,sha256=0JwDUE6YZnL4MnLZGJh8mSu780-dfCtNdKBGJbSyps8,26331
|
|
42
|
-
modal/client.pyi,sha256=
|
|
42
|
+
modal/client.pyi,sha256=Mkc2vp3NWmoMFS4cUpbZ_-vzn1FYvnhwgdzYloG1lgg,25747
|
|
43
43
|
modal/cloud_bucket_mount.py,sha256=ZOg69dhIFcJcwim4JP-6s1tqwOYAfgS9806jRpspifw,7511
|
|
44
44
|
modal/cloud_bucket_mount.pyi,sha256=HoPe_NG5jYdVfmTNY-ZJ3-C8Eo_FzJovl9orJRjkGbE,10252
|
|
45
45
|
modal/cls.py,sha256=UGN07SbbQxzMeke8Ha-F22gs3yq1Qoo-tZqbjxax-gI,41782
|
|
@@ -56,7 +56,7 @@ modal/environments.pyi,sha256=9AYO6zfLuONOs0MTj112-uUoT1zFrzKgAFJR524WBE4,23756
|
|
|
56
56
|
modal/exception.py,sha256=L-dUKust6feZzn5qhTVusSAr0IBa4Wa3qIA225IT_lY,12334
|
|
57
57
|
modal/file_pattern_matcher.py,sha256=CpaNNj7oBlOSewX-AAUZCF8KDxH0_DmgwzfpVGbPYJ4,8138
|
|
58
58
|
modal/functions.py,sha256=-5aogviGxcNXX4qZ34GSBMKnLqH-WH0eb4cGbHpCYYw,382
|
|
59
|
-
modal/functions.pyi,sha256=
|
|
59
|
+
modal/functions.pyi,sha256=SQAOzqt-85-56X8qyYF2p3wP1Mm8RsoFPH2DL9oB_58,63093
|
|
60
60
|
modal/image.py,sha256=c0lUSAoU-Ip3g5DGZ0uhdCzoWSQWh1g0i-7Rxo-Sz-I,160
|
|
61
61
|
modal/image.pyi,sha256=7OXjuyCnui5OMyX96aeh1aL2DlsrVGzkH_v0v7WpfGA,62920
|
|
62
62
|
modal/io_streams.py,sha256=zf4B_F1fuw-88MjKqIhdkvuUfAj0SZZLUp0Jg6kUdBU,33590
|
|
@@ -68,7 +68,7 @@ modal/network_file_system.pyi,sha256=GM4VrrVutX2fB0B6Vi_wHFkFPRyDeRKXF3enRizEpMc
|
|
|
68
68
|
modal/object.py,sha256=bTeskuY8JFrESjU4_UL_nTwYlBQdOLmVaOX3X6EMxsg,164
|
|
69
69
|
modal/object.pyi,sha256=1U_w4bH9HHYhv7JTFEgh3PrCjO5YWYfIEpm1WD3_730,7950
|
|
70
70
|
modal/output.py,sha256=al48rBUhnhnIHjg9OhwgNcK4zKrupnMBW0onEbJg8Uk,1227
|
|
71
|
-
modal/parallel_map.py,sha256=
|
|
71
|
+
modal/parallel_map.py,sha256=MYIpY3ahwwduUTEo2D575rxRzumBH-yLsHQNntm-UtM,67550
|
|
72
72
|
modal/parallel_map.pyi,sha256=M9CK6c4KlXu33lgyvXfAuHwyNwR27E5STS-cr1MHgLg,16753
|
|
73
73
|
modal/partial_function.py,sha256=xdGaidk3cWmuKaB5C_uQuK9-V5BXtHIydYo8MB1V28s,1287
|
|
74
74
|
modal/partial_function.pyi,sha256=NBIxyHaHNYNn8k6SZZz7BNC3uvEiSEaa4J5chpDcDTo,15953
|
|
@@ -219,7 +219,7 @@ modal/sandbox/_task_command_router_client.py,sha256=wTaq7RcscgJQmBsV6QunRrCKa__5
|
|
|
219
219
|
modal/sandbox/sandbox.py,sha256=4ekghND9qUGf5wtIQH4mVa6PHGjHgY0UN5RKryOM05k,683
|
|
220
220
|
modal/sandbox/sandbox.pyi,sha256=V1w1OUN5DdVYs27-ceLo2k5v5bIQkvu91QQJtfJxnGk,144828
|
|
221
221
|
modal/skills/modal/SKILL.md,sha256=Bm-0BPTYppJoeQzA-N-Re8L6-nKnV6gspJXMl4cD0P0,5490
|
|
222
|
-
modal-1.6.5.
|
|
222
|
+
modal-1.6.5.dev2.dist-info/licenses/LICENSE,sha256=psuoW8kuDP96RQsdhzwOqi6fyWv0ct8CR6Jr7He_P_k,10173
|
|
223
223
|
modal_docs/__init__.py,sha256=svYKtV8HDwDCN86zbdWqyq5T8sMdGDj0PVlzc2tIxDM,28
|
|
224
224
|
modal_docs/gen_cli_docs.py,sha256=9-b8vl2EsLWD9zJqpCK8IUi5h44Bjn3i3rSdedZV4bA,6415
|
|
225
225
|
modal_docs/gen_cli_docs_main.py,sha256=UPGr7O1DYTIRLwfINe2rbdh89J3cPVTU1OWL-SjxnOQ,198
|
|
@@ -232,8 +232,8 @@ modal_docs/mdmd/signatures.py,sha256=OASroKle763Kfumn4Ek4PABJXEGP56JMCTug44QoBx4
|
|
|
232
232
|
modal_docs/mdmd/types.py,sha256=tv7fvziPr-MeDzOp4e2pK5h3d1DXTUOO74rPqDoBn6g,736
|
|
233
233
|
modal_proto/__init__.py,sha256=Hkou4lcD5tArEkW_9v9KZhLY7fl0fA9-O28beKU55pg,396
|
|
234
234
|
modal_proto/api_grpc.py,sha256=GUUFCqXoTy18791lQrxQG6QI041bi2C1K5aa4S-Irm8,223704
|
|
235
|
-
modal_proto/api_pb2.py,sha256=
|
|
236
|
-
modal_proto/api_pb2.pyi,sha256=
|
|
235
|
+
modal_proto/api_pb2.py,sha256=832RdL17RsTBOFDcv11P5P--crkHYLT27KJVcLuzCeE,655990
|
|
236
|
+
modal_proto/api_pb2.pyi,sha256=anH5Cbhrryfm2g_p9QDbyzkbdZxjTXVT-9yNCrUJNso,912161
|
|
237
237
|
modal_proto/api_pb2_grpc.py,sha256=ffN-U_J9IdXne9GJRxKAS0EIXDgxF4ugKNQAtls_Td0,478672
|
|
238
238
|
modal_proto/api_pb2_grpc.pyi,sha256=_5cZhitlL91bkfkHGR2jtikf7NZjy7yxpSAwpcy_Y8Q,112621
|
|
239
239
|
modal_proto/modal_api_grpc.py,sha256=72Q8oBa2Y1A5nTKeRJ197kuGkesEe_uM-AtABeebJYs,35126
|
|
@@ -243,10 +243,10 @@ modal_proto/task_command_router_pb2.py,sha256=ysC0d8p3YxwyOpP3B-qDlvE81Yo4ntQiwi
|
|
|
243
243
|
modal_proto/task_command_router_pb2.pyi,sha256=FDcd5t3ZCmQHUjefOzg07iglrgKYcBrzFvdKIWsEMHI,50628
|
|
244
244
|
modal_proto/task_command_router_pb2_grpc.py,sha256=8iGUGwEVbqOsZWPJ7OsQ9OKUGaSCf9Dr2tvb04Ww6d4,44620
|
|
245
245
|
modal_proto/task_command_router_pb2_grpc.pyi,sha256=26Fq9RQo09B9KLHsgdpRuw-I6Z4-2jrXLQkuDzB-moI,15097
|
|
246
|
-
modal_version/__init__.py,sha256=
|
|
246
|
+
modal_version/__init__.py,sha256=nW2anZbvvDQJN0Swk-mDyhJ8STd3-l-9yoeN1HvNs0o,120
|
|
247
247
|
modal_version/__main__.py,sha256=nLUbubxKx7GXNzJIkTB7M7_u8080LyLM0IS0rzFkC_c,119
|
|
248
|
-
modal-1.6.5.
|
|
249
|
-
modal-1.6.5.
|
|
250
|
-
modal-1.6.5.
|
|
251
|
-
modal-1.6.5.
|
|
252
|
-
modal-1.6.5.
|
|
248
|
+
modal-1.6.5.dev2.dist-info/METADATA,sha256=tYwBi1nlCpOJ3Drxa71VjZQNPEfdWNCXNqk4K_1V6p4,2651
|
|
249
|
+
modal-1.6.5.dev2.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
|
|
250
|
+
modal-1.6.5.dev2.dist-info/entry_points.txt,sha256=An-wYgeEUnm6xzrAP9_NTSTSciYvvEWsMZILtYrvpAI,46
|
|
251
|
+
modal-1.6.5.dev2.dist-info/top_level.txt,sha256=4BWzoKYREKUZ5iyPzZpjqx4G8uB5TWxXPDwibLcVa7k,43
|
|
252
|
+
modal-1.6.5.dev2.dist-info/RECORD,,
|