modal 0.73.97__py3-none-any.whl → 0.73.99__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.
@@ -219,7 +219,12 @@ async def retry_transient_errors(
219
219
 
220
220
  n_retries += 1
221
221
 
222
- if retry_warning_message and n_retries % retry_warning_message.warning_interval == 0:
222
+ if (
223
+ retry_warning_message
224
+ and n_retries % retry_warning_message.warning_interval == 0
225
+ and isinstance(exc, GRPCError)
226
+ and exc.status in retry_warning_message.errors_to_warn_for
227
+ ):
223
228
  logger.warning(retry_warning_message.message)
224
229
 
225
230
  await asyncio.sleep(delay)
modal/client.pyi CHANGED
@@ -27,7 +27,7 @@ class _Client:
27
27
  _snapshotted: bool
28
28
 
29
29
  def __init__(
30
- self, server_url: str, client_type: int, credentials: typing.Optional[tuple[str, str]], version: str = "0.73.97"
30
+ self, server_url: str, client_type: int, credentials: typing.Optional[tuple[str, str]], version: str = "0.73.99"
31
31
  ): ...
32
32
  def is_closed(self) -> bool: ...
33
33
  @property
@@ -85,7 +85,7 @@ class Client:
85
85
  _snapshotted: bool
86
86
 
87
87
  def __init__(
88
- self, server_url: str, client_type: int, credentials: typing.Optional[tuple[str, str]], version: str = "0.73.97"
88
+ self, server_url: str, client_type: int, credentials: typing.Optional[tuple[str, str]], version: str = "0.73.99"
89
89
  ): ...
90
90
  def is_closed(self) -> bool: ...
91
91
  @property
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: modal
3
- Version: 0.73.97
3
+ Version: 0.73.99
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=ojhuLZuNZAQ1OsbDH0k6G4pm1W7bOIvZfXbaKlvQ-Ao,45622
22
22
  modal/app.pyi,sha256=tZFbcsu20SuvfB2puxCyuXLFNJ9bQulzag55rVpgZmc,26827
23
23
  modal/call_graph.py,sha256=1g2DGcMIJvRy-xKicuf63IVE98gJSnQsr8R_NVMptNc,2581
24
24
  modal/client.py,sha256=j9D3hNis1lfhnz9lVFGgJgowbH3PaGUzNKgHPWYG778,15372
25
- modal/client.pyi,sha256=r4hv31JcXvoGh2VhVQG2N3wqeQMyWnD5sq25f-eTZ0c,7593
25
+ modal/client.pyi,sha256=yxSilo1YbpdBQwH1azbDyO3Sx7t1phiLnH0Vq6uZka0,7593
26
26
  modal/cloud_bucket_mount.py,sha256=YOe9nnvSr4ZbeCn587d7_VhE9IioZYRvF9VYQTQux08,5914
27
27
  modal/cloud_bucket_mount.pyi,sha256=30T3K1a89l6wzmEJ_J9iWv9SknoGqaZDx59Xs-ZQcmk,1607
28
28
  modal/cls.py,sha256=JhDbaZZHN52lqA_roY1BCbcN9BvbkUcdXiM2Kg9lIc0,31717
@@ -100,7 +100,7 @@ modal/_utils/deprecation.py,sha256=EXP1beU4pmEqEzWMLw6E3kUfNfpmNA_VOp6i0EHi93g,4
100
100
  modal/_utils/docker_utils.py,sha256=h1uETghR40mp_y3fSWuZAfbIASH1HMzuphJHghAL6DU,3722
101
101
  modal/_utils/function_utils.py,sha256=Rmz8GJDie-RW_q2RcTwholEWixS2IQDPBsRBJ3f3ZvU,27302
102
102
  modal/_utils/grpc_testing.py,sha256=H1zHqthv19eGPJz2HKXDyWXWGSqO4BRsxah3L5Xaa8A,8619
103
- modal/_utils/grpc_utils.py,sha256=rERGLUYRVv1tOLxOkHD-c8fc_gXUhHfHshkr7NQCH7Q,8356
103
+ modal/_utils/grpc_utils.py,sha256=wmMydVKN9YbugTwUXuOuzxbpzYvxkTDaFRxlBtIDE_0,8526
104
104
  modal/_utils/hash_utils.py,sha256=zg3J6OGxTFGSFri1qQ12giDz90lWk8bzaxCTUCRtiX4,3034
105
105
  modal/_utils/http_utils.py,sha256=yeTFsXYr0rYMEhB7vBP7audG9Uc7OLhzKBANFDZWVt0,2451
106
106
  modal/_utils/logger.py,sha256=ePzdudrtx9jJCjuO6-bcL_kwUJfi4AwloUmIiNtqkY0,1330
@@ -152,10 +152,10 @@ modal_docs/mdmd/__init__.py,sha256=svYKtV8HDwDCN86zbdWqyq5T8sMdGDj0PVlzc2tIxDM,2
152
152
  modal_docs/mdmd/mdmd.py,sha256=Irx49MCCTlBOP4FBdLR--JrpA3-WhsVeriq0LGgsRic,6232
153
153
  modal_docs/mdmd/signatures.py,sha256=XJaZrK7Mdepk5fdX51A8uENiLFNil85Ud0d4MH8H5f0,3218
154
154
  modal_proto/__init__.py,sha256=MIEP8jhXUeGq_eCjYFcqN5b1bxBM4fdk0VESpjWR0fc,28
155
- modal_proto/api.proto,sha256=ySgKXA0XwKzTHHQH1BR5y_9WISMcfC-rHrpbFeAf9KQ,87094
155
+ modal_proto/api.proto,sha256=2ZqCWqGd3uou1gB-3BaeHH4ifUc2tGqfuECK5xZ66qs,87119
156
156
  modal_proto/api_grpc.py,sha256=FYGqDegM_w_qxdtlxum8k31mDibKoMvmNxv_p9cKdKs,109056
157
- modal_proto/api_pb2.py,sha256=6ABPWYQl3mjIFgVaOsfVUqIIfj4FJLl52Ae2k0t-Ixc,312634
158
- modal_proto/api_pb2.pyi,sha256=Yb81WUjIwrkUeVcAa4h063mKtqcesnGudaKRbBKxS-k,421888
157
+ modal_proto/api_pb2.py,sha256=_B9huqNJ0UIPxXLZAI951Wm0ZuMuSto08Ohk2jElhbk,312674
158
+ modal_proto/api_pb2.pyi,sha256=eBbPOUnaWFd4at5uw4UlBkyFl0H6m2NQNSxYwajIo_Y,422034
159
159
  modal_proto/api_pb2_grpc.py,sha256=DNp0Et5i_Ey4dKx_1o1LRtYhyWYyT0NzTcAY4EcHn-c,235765
160
160
  modal_proto/api_pb2_grpc.pyi,sha256=RI6tWC3L8EIN4-izFSEGPPJl5Ta0lXPNuHUJaWAr35s,54892
161
161
  modal_proto/modal_api_grpc.py,sha256=UG8WJU81afrWPwItWB4Ag64E9EpyREMpBbAVGVEYJiM,14550
@@ -169,10 +169,10 @@ modal_proto/options_pb2_grpc.pyi,sha256=CImmhxHsYnF09iENPoe8S4J-n93jtgUYD2JPAc0y
169
169
  modal_proto/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
170
170
  modal_version/__init__.py,sha256=wiJQ53c-OMs0Xf1UeXOxQ7FwlV1VzIjnX6o-pRYZ_Pk,470
171
171
  modal_version/__main__.py,sha256=2FO0yYQQwDTh6udt1h-cBnGd1c4ZyHnHSI4BksxzVac,105
172
- modal_version/_version_generated.py,sha256=GXWojmBCCsRL7QfI6BI5GdzQMmMkGm1XDHdo0VvPKlw,149
173
- modal-0.73.97.dist-info/LICENSE,sha256=psuoW8kuDP96RQsdhzwOqi6fyWv0ct8CR6Jr7He_P_k,10173
174
- modal-0.73.97.dist-info/METADATA,sha256=pptO1KPZXxSNZWFtlYfC5qiB7oeOGtB2jNIzRA55-jU,2452
175
- modal-0.73.97.dist-info/WHEEL,sha256=52BFRY2Up02UkjOa29eZOS2VxUrpPORXg1pkohGGUS8,91
176
- modal-0.73.97.dist-info/entry_points.txt,sha256=An-wYgeEUnm6xzrAP9_NTSTSciYvvEWsMZILtYrvpAI,46
177
- modal-0.73.97.dist-info/top_level.txt,sha256=4BWzoKYREKUZ5iyPzZpjqx4G8uB5TWxXPDwibLcVa7k,43
178
- modal-0.73.97.dist-info/RECORD,,
172
+ modal_version/_version_generated.py,sha256=ja3QpOBrb9EGMq6TeQ3S2XntAYKUcRT1bDf4m0DVdWY,149
173
+ modal-0.73.99.dist-info/LICENSE,sha256=psuoW8kuDP96RQsdhzwOqi6fyWv0ct8CR6Jr7He_P_k,10173
174
+ modal-0.73.99.dist-info/METADATA,sha256=DjtWFc9ldvLsHbIgSX_-df0Gp66ZOJKplNLtrfSK-uQ,2452
175
+ modal-0.73.99.dist-info/WHEEL,sha256=52BFRY2Up02UkjOa29eZOS2VxUrpPORXg1pkohGGUS8,91
176
+ modal-0.73.99.dist-info/entry_points.txt,sha256=An-wYgeEUnm6xzrAP9_NTSTSciYvvEWsMZILtYrvpAI,46
177
+ modal-0.73.99.dist-info/top_level.txt,sha256=4BWzoKYREKUZ5iyPzZpjqx4G8uB5TWxXPDwibLcVa7k,43
178
+ modal-0.73.99.dist-info/RECORD,,
modal_proto/api.proto CHANGED
@@ -1927,6 +1927,7 @@ message NotebookKernelPublishResultsRequest {
1927
1927
  message ExecuteReply {
1928
1928
  string status = 1;
1929
1929
  uint32 execution_count = 2;
1930
+ double duration = 3;
1930
1931
  }
1931
1932
 
1932
1933
  // IOPub message or reply received from the kernel for a cell.