modal 1.7.0.dev0__py3-none-any.whl → 1.7.0.dev1__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 CHANGED
@@ -78,7 +78,7 @@ class _Client:
78
78
  server_url: str,
79
79
  client_type: int,
80
80
  credentials: typing.Optional[tuple[str, str]],
81
- version: str = "1.7.0.dev0",
81
+ version: str = "1.7.0.dev1",
82
82
  *,
83
83
  oauth_credentials: typing.Optional[_OAuthCredentials] = None,
84
84
  ):
@@ -295,7 +295,7 @@ class Client:
295
295
  server_url: str,
296
296
  client_type: int,
297
297
  credentials: typing.Optional[tuple[str, str]],
298
- version: str = "1.7.0.dev0",
298
+ version: str = "1.7.0.dev1",
299
299
  *,
300
300
  oauth_credentials: typing.Optional[_OAuthCredentials] = None,
301
301
  ):
modal/sandbox/_sandbox.py CHANGED
@@ -27,7 +27,7 @@ from ..client import _Client
27
27
  from ..cloud_bucket_mount import _CloudBucketMount
28
28
  from ..config import config, logger as logger
29
29
  from ..container_process import _ContainerProcess
30
- from ..exception import ClientClosed, ExecutionError, InvalidError, NotFoundError
30
+ from ..exception import ClientClosed, ConflictError, ExecutionError, InvalidError, NotFoundError
31
31
  from ..io_streams import _StreamReader, _StreamWriter
32
32
  from ..network_file_system import _NetworkFileSystem
33
33
  from ..proxy import _Proxy
@@ -1021,11 +1021,16 @@ class _Sandbox(_Object, type_prefixes=("sb",)):
1021
1021
  async def wait(self, raise_on_termination: bool = True):
1022
1022
  """Wait for the Sandbox to finish running.
1023
1023
 
1024
+ Raises `modal.exception.ConflictError` if the Sandbox fails to start.
1025
+
1024
1026
  Args:
1025
1027
  raise_on_termination: If True, raise when the sandbox is terminated externally.
1026
1028
 
1027
1029
  """
1028
1030
  await self._impl.wait(raise_on_termination)
1031
+ result = self._impl.result
1032
+ if result is not None and result.status == api_pb2.GenericResult.GENERIC_STATUS_INIT_FAILURE:
1033
+ raise ConflictError(result.exception or "Sandbox failed to start")
1029
1034
 
1030
1035
  async def wait_until_ready(self, *, timeout: int = 300) -> None:
1031
1036
  """Wait until the Sandbox is ready.
@@ -1149,7 +1154,7 @@ class _Sandbox(_Object, type_prefixes=("sb",)):
1149
1154
  self._ensure_attached()
1150
1155
  await self._impl.terminate()
1151
1156
  if wait:
1152
- await self.wait(raise_on_termination=False)
1157
+ await self._impl.wait(raise_on_termination=False)
1153
1158
  return self.returncode
1154
1159
  return None
1155
1160
 
modal/sandbox/sandbox.pyi CHANGED
@@ -2600,6 +2600,8 @@ class Sandbox(modal.object.Object):
2600
2600
  def __call__(self, /, raise_on_termination: bool = True):
2601
2601
  """Wait for the Sandbox to finish running.
2602
2602
 
2603
+ Raises `modal.exception.ConflictError` if the Sandbox fails to start.
2604
+
2603
2605
  Args:
2604
2606
  raise_on_termination: If True, raise when the sandbox is terminated externally.
2605
2607
  """
@@ -2608,6 +2610,8 @@ class Sandbox(modal.object.Object):
2608
2610
  async def aio(self, /, raise_on_termination: bool = True):
2609
2611
  """Wait for the Sandbox to finish running.
2610
2612
 
2613
+ Raises `modal.exception.ConflictError` if the Sandbox fails to start.
2614
+
2611
2615
  Args:
2612
2616
  raise_on_termination: If True, raise when the sandbox is terminated externally.
2613
2617
  """
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: modal
3
- Version: 1.7.0.dev0
3
+ Version: 1.7.0.dev1
4
4
  Summary: Python client library for Modal
5
5
  Author-email: Modal Labs <support@modal.com>
6
6
  License-Expression: Apache-2.0
@@ -41,7 +41,7 @@ modal/billing.py,sha256=E1-P_P8bJFLp-bTaggYd4BaaViImPB5UdtXiY8VeAZQ,390
41
41
  modal/billing.pyi,sha256=4m7VLYNS8IiJ2I3CJx0awvrOM6BILWRVLfdeqtAYr8M,7189
42
42
  modal/call_graph.py,sha256=XGALIDn1bLchWo_goyX23bcPjzCZcfqKUo8INIfDapo,1775
43
43
  modal/client.py,sha256=-0vLoMs5e-Ud_rLCBe5CWFInGOOGihtrYoMhAKqn47w,25312
44
- modal/client.pyi,sha256=nZKF2dLQwQVDQ0U3-jDZMtgTTH_eQpLMbMWo7qu-G30,24749
44
+ modal/client.pyi,sha256=PLNw729lO42gNR17zoAtX3LNXK-py-pnWUn9ySH_A_k,24749
45
45
  modal/cloud_bucket_mount.py,sha256=ZOg69dhIFcJcwim4JP-6s1tqwOYAfgS9806jRpspifw,7511
46
46
  modal/cloud_bucket_mount.pyi,sha256=HoPe_NG5jYdVfmTNY-ZJ3-C8Eo_FzJovl9orJRjkGbE,10252
47
47
  modal/cls.py,sha256=zMjo0zPTiAQGr91QSZ6nQnxEnIvPCPEpfU7sOfO03Vw,42860
@@ -212,14 +212,14 @@ modal/sandbox/_filesystem.py,sha256=GdkMNVahPpUpfuY04HwWWwZyMID3bcut7PHXNWOIpYg,
212
212
  modal/sandbox/_impl_persistent.py,sha256=SXx7sThkEB0eNDAjmDL4GxxwI_m_afLllDwStVQ8lW0,21563
213
213
  modal/sandbox/_impl_v1.py,sha256=rmQU5Thl97sPSQN0RKY3_WwP2QyhDOBSvowKZDKOvJI,22672
214
214
  modal/sandbox/_impl_v2.py,sha256=JwwJoOMVdnTcrhDWVyK5T4vsoFa__-B1YLxe9KRRrrE,28187
215
- modal/sandbox/_sandbox.py,sha256=rfvt7yCICJwLNTK46F_H6XwDfO0nwrPpO4IQ4TBukFk,68913
215
+ modal/sandbox/_sandbox.py,sha256=gQDHd5qIXnSNomJoIPYUY4Q-ZMjgx_vD_04Y21rK7dg,69229
216
216
  modal/sandbox/_sidecar.py,sha256=_GisVMAVELZC7yaJ_naBlBwZKKysL0FI8VCRwU6u090,21300
217
217
  modal/sandbox/_snapshot.py,sha256=dJfmiC3tCtBLWRLubUOrHUJ5gq154GxAT4qkNKwacjo,3110
218
218
  modal/sandbox/_task_command_router_client.py,sha256=Wn34OJFmFcO4SRP9djElrbT-xUodFG0wY6AObJ_A9z8,56413
219
219
  modal/sandbox/sandbox.py,sha256=4ekghND9qUGf5wtIQH4mVa6PHGjHgY0UN5RKryOM05k,683
220
- modal/sandbox/sandbox.pyi,sha256=YnjPYGQxZJl4vJozGkb5Db_tH0wNeK6oS7plodDKS1w,151103
220
+ modal/sandbox/sandbox.pyi,sha256=E-5rjlT9i1lNeBmP3KPxe_J_3doHsir4d_h1TxIoWXQ,151269
221
221
  modal/skills/modal/SKILL.md,sha256=Bm-0BPTYppJoeQzA-N-Re8L6-nKnV6gspJXMl4cD0P0,5490
222
- modal-1.7.0.dev0.dist-info/licenses/LICENSE,sha256=psuoW8kuDP96RQsdhzwOqi6fyWv0ct8CR6Jr7He_P_k,10173
222
+ modal-1.7.0.dev1.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
@@ -243,10 +243,10 @@ modal_proto/task_command_router_pb2.py,sha256=KiILYgUYUFsEFlc_Qw0XcgtSuKreV1OOFg
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=Clv_ichAt6mc4ckcUB-wgZlTGZ3VwE3BR_gRHf7-onw,120
246
+ modal_version/__init__.py,sha256=9bZJ2s_KtSn9Ea6-Wgy5w1cxYgDrXQpOoiXKQyN0xEs,120
247
247
  modal_version/__main__.py,sha256=nLUbubxKx7GXNzJIkTB7M7_u8080LyLM0IS0rzFkC_c,119
248
- modal-1.7.0.dev0.dist-info/METADATA,sha256=zFxKeNfFKajmOdvEkJSJ9QBs1eGWSiDz0L4nxzIM63E,2653
249
- modal-1.7.0.dev0.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
250
- modal-1.7.0.dev0.dist-info/entry_points.txt,sha256=An-wYgeEUnm6xzrAP9_NTSTSciYvvEWsMZILtYrvpAI,46
251
- modal-1.7.0.dev0.dist-info/top_level.txt,sha256=4BWzoKYREKUZ5iyPzZpjqx4G8uB5TWxXPDwibLcVa7k,43
252
- modal-1.7.0.dev0.dist-info/RECORD,,
248
+ modal-1.7.0.dev1.dist-info/METADATA,sha256=55IBk6d71su0BWnxH5FM71BdlUfrEe_P9zwIqa0EvYU,2653
249
+ modal-1.7.0.dev1.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
250
+ modal-1.7.0.dev1.dist-info/entry_points.txt,sha256=An-wYgeEUnm6xzrAP9_NTSTSciYvvEWsMZILtYrvpAI,46
251
+ modal-1.7.0.dev1.dist-info/top_level.txt,sha256=4BWzoKYREKUZ5iyPzZpjqx4G8uB5TWxXPDwibLcVa7k,43
252
+ modal-1.7.0.dev1.dist-info/RECORD,,
modal_version/__init__.py CHANGED
@@ -1,4 +1,4 @@
1
1
  # Copyright Modal Labs 2026
2
2
  """Supplies the current version of the modal client library."""
3
3
 
4
- __version__ = "1.7.0.dev0"
4
+ __version__ = "1.7.0.dev1"