modal 0.73.74__py3-none-any.whl → 0.73.75__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/config.py +8 -0
- modal/image.py +1 -0
- {modal-0.73.74.dist-info → modal-0.73.75.dist-info}/METADATA +1 -1
- {modal-0.73.74.dist-info → modal-0.73.75.dist-info}/RECORD +10 -10
- modal_version/_version_generated.py +1 -1
- {modal-0.73.74.dist-info → modal-0.73.75.dist-info}/LICENSE +0 -0
- {modal-0.73.74.dist-info → modal-0.73.75.dist-info}/WHEEL +0 -0
- {modal-0.73.74.dist-info → modal-0.73.75.dist-info}/entry_points.txt +0 -0
- {modal-0.73.74.dist-info → modal-0.73.75.dist-info}/top_level.txt +0 -0
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.
|
30
|
+
self, server_url: str, client_type: int, credentials: typing.Optional[tuple[str, str]], version: str = "0.73.75"
|
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.
|
88
|
+
self, server_url: str, client_type: int, credentials: typing.Optional[tuple[str, str]], version: str = "0.73.75"
|
89
89
|
): ...
|
90
90
|
def is_closed(self) -> bool: ...
|
91
91
|
@property
|
modal/config.py
CHANGED
@@ -60,6 +60,13 @@ Other possible configuration options are:
|
|
60
60
|
When set, ignores the Image cache and builds all Image layers. Note that this
|
61
61
|
will break the cache for all images based on the rebuilt layers, so other images
|
62
62
|
may rebuild on subsequent runs / deploys even if the config is reverted.
|
63
|
+
* `ignore_cache` (in the .toml file) / `MODAL_IGNORE_CACHE` (as an env var).
|
64
|
+
Defaults to False.
|
65
|
+
When set, ignores the Image cache and builds all Image layers. Unlike `force_build`,
|
66
|
+
this will not overwrite the cache for other images that have the same recipe.
|
67
|
+
Subsequent runs that do not use this option will pull the *previous* Image from
|
68
|
+
the cache, if one exists. It can be useful for testing an App's robustness to
|
69
|
+
Image rebuilds without clobbering Images used by other Apps.
|
63
70
|
* `traceback` (in the .toml file) / `MODAL_TRACEBACK` (as an env var).
|
64
71
|
Defaults to False. Enables printing full tracebacks on unexpected CLI
|
65
72
|
errors, which can be useful for debugging client issues.
|
@@ -218,6 +225,7 @@ _SETTINGS = {
|
|
218
225
|
"worker_id": _Setting(), # For internal debugging use.
|
219
226
|
"restore_state_path": _Setting("/__modal/restore-state.json"),
|
220
227
|
"force_build": _Setting(False, transform=_to_boolean),
|
228
|
+
"ignore_cache": _Setting(False, transform=_to_boolean),
|
221
229
|
"traceback": _Setting(False, transform=_to_boolean),
|
222
230
|
"image_builder_version": _Setting(),
|
223
231
|
"strict_parameters": _Setting(False, transform=_to_boolean), # For internal/experimental use
|
modal/image.py
CHANGED
@@ -622,6 +622,7 @@ class _Image(_Object, type_prefix="im"):
|
|
622
622
|
# Failsafe mechanism to prevent inadvertant updates to the global images.
|
623
623
|
# Only admins can publish to the global namespace, but they have to additionally request it.
|
624
624
|
allow_global_deployment=os.environ.get("MODAL_IMAGE_ALLOW_GLOBAL_DEPLOYMENT", "0") == "1",
|
625
|
+
ignore_cache=config.get("ignore_cache"),
|
625
626
|
)
|
626
627
|
resp = await retry_transient_errors(resolver.client.stub.ImageGetOrCreate, req)
|
627
628
|
image_id = resp.image_id
|
@@ -22,12 +22,12 @@ modal/app.py,sha256=o5mHoHtn41nkvskX_ekJkyfG6MXwj5rqerRi_nnPd0w,44725
|
|
22
22
|
modal/app.pyi,sha256=0MMCgskIL4r3eq8oBcfm2lLyeao2gXjS3iXaIfmaJ-o,25959
|
23
23
|
modal/call_graph.py,sha256=1g2DGcMIJvRy-xKicuf63IVE98gJSnQsr8R_NVMptNc,2581
|
24
24
|
modal/client.py,sha256=8SQawr7P1PNUCq1UmJMUQXG2jIo4Nmdcs311XqrNLRE,15276
|
25
|
-
modal/client.pyi,sha256=
|
25
|
+
modal/client.pyi,sha256=eDUIR1_V7xRcoFUQY73NUjEZEf1RdjOA75Eug2jnpJM,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=nx3mFniMw_b0tKqmY5smbi39xSpwmu_Mnb6_h1OFIBM,30208
|
29
29
|
modal/cls.pyi,sha256=4Ms1i4Wty1qe49Dh_wsGhJDCiJz7t-XGqXLcpzwhUqs,9084
|
30
|
-
modal/config.py,sha256=
|
30
|
+
modal/config.py,sha256=Boz1bPzaG-k5Grjq6y6fAELH1N_gTuYDnpB6FODzCPo,11710
|
31
31
|
modal/container_process.py,sha256=WTqLn01dJPVkPpwR_0w_JH96ceN5mV4TGtiu1ZR2RRA,6108
|
32
32
|
modal/container_process.pyi,sha256=Hf0J5JyDdCCXBJSKx6gvkPOo0XrztCm78xzxamtzUjQ,2828
|
33
33
|
modal/dict.py,sha256=vc5lQVqzeDUCb4fRjnOlqYK2GmBb0fIhZmvB0xIBG0U,12921
|
@@ -43,7 +43,7 @@ modal/file_pattern_matcher.py,sha256=trosX-Bp7dOubudN1bLLhRAoidWy1TcoaR4Pv8CedWw
|
|
43
43
|
modal/functions.py,sha256=kcNHvqeGBxPI7Cgd57NIBBghkfbeFJzXO44WW0jSmao,325
|
44
44
|
modal/functions.pyi,sha256=2z5Vt2U3KfmTWyC55hPVEgc4i83BiqAK0faJgumpe04,14405
|
45
45
|
modal/gpu.py,sha256=Kbhs_u49FaC2Zi0TjCdrpstpRtT5eZgecynmQi5IZVE,6752
|
46
|
-
modal/image.py,sha256=
|
46
|
+
modal/image.py,sha256=adMUpS7WrCu-M78BWslz2r6GPviy4qPvd5Dh-dBIrrk,90257
|
47
47
|
modal/image.pyi,sha256=L7aZUOElSGtNHmFHz1RgKP1cG5paiXt_EzylrwBwzVk,25004
|
48
48
|
modal/io_streams.py,sha256=QkQiizKRzd5bnbKQsap31LJgBYlAnj4-XkV_50xPYX0,15079
|
49
49
|
modal/io_streams.pyi,sha256=bJ7ZLmSmJ0nKoa6r4FJpbqvzdUVa0lEe0Fa-MMpMezU,5071
|
@@ -168,10 +168,10 @@ modal_proto/options_pb2_grpc.pyi,sha256=CImmhxHsYnF09iENPoe8S4J-n93jtgUYD2JPAc0y
|
|
168
168
|
modal_proto/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
169
169
|
modal_version/__init__.py,sha256=wiJQ53c-OMs0Xf1UeXOxQ7FwlV1VzIjnX6o-pRYZ_Pk,470
|
170
170
|
modal_version/__main__.py,sha256=2FO0yYQQwDTh6udt1h-cBnGd1c4ZyHnHSI4BksxzVac,105
|
171
|
-
modal_version/_version_generated.py,sha256=
|
172
|
-
modal-0.73.
|
173
|
-
modal-0.73.
|
174
|
-
modal-0.73.
|
175
|
-
modal-0.73.
|
176
|
-
modal-0.73.
|
177
|
-
modal-0.73.
|
171
|
+
modal_version/_version_generated.py,sha256=4M0DsZZiNUQMmt7Jcl_SgaTcbGRAbPJPvVkBeiDK8ZE,149
|
172
|
+
modal-0.73.75.dist-info/LICENSE,sha256=psuoW8kuDP96RQsdhzwOqi6fyWv0ct8CR6Jr7He_P_k,10173
|
173
|
+
modal-0.73.75.dist-info/METADATA,sha256=Coiw0JHcC95gdpUDik0k35c-von8Yp5WuuA5bZ-ks5c,2452
|
174
|
+
modal-0.73.75.dist-info/WHEEL,sha256=jB7zZ3N9hIM9adW7qlTAyycLYW9npaWKLRzaoVcLKcM,91
|
175
|
+
modal-0.73.75.dist-info/entry_points.txt,sha256=An-wYgeEUnm6xzrAP9_NTSTSciYvvEWsMZILtYrvpAI,46
|
176
|
+
modal-0.73.75.dist-info/top_level.txt,sha256=4BWzoKYREKUZ5iyPzZpjqx4G8uB5TWxXPDwibLcVa7k,43
|
177
|
+
modal-0.73.75.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|