truss 0.11.12rc509__py3-none-any.whl → 0.11.12rc510__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 truss might be problematic. Click here for more details.
- truss/templates/shared/lazy_data_resolver.py +26 -4
- {truss-0.11.12rc509.dist-info → truss-0.11.12rc510.dist-info}/METADATA +1 -1
- {truss-0.11.12rc509.dist-info → truss-0.11.12rc510.dist-info}/RECORD +6 -6
- {truss-0.11.12rc509.dist-info → truss-0.11.12rc510.dist-info}/WHEEL +0 -0
- {truss-0.11.12rc509.dist-info → truss-0.11.12rc510.dist-info}/entry_points.txt +0 -0
- {truss-0.11.12rc509.dist-info → truss-0.11.12rc510.dist-info}/licenses/LICENSE +0 -0
|
@@ -53,7 +53,18 @@ class LazyDataResolverV2:
|
|
|
53
53
|
self._lock = Lock()
|
|
54
54
|
self._start_time = time.time()
|
|
55
55
|
self.logger = logger or logging.getLogger(__name__)
|
|
56
|
-
|
|
56
|
+
|
|
57
|
+
# Debug logging for bptr manifest detection
|
|
58
|
+
self.logger.info(f"LazyDataResolverV2: Checking for bptr manifest in paths: {LAZY_DATA_RESOLVER_PATH}")
|
|
59
|
+
bptr_found = self.bptr_exists()
|
|
60
|
+
self.logger.info(f"LazyDataResolverV2: bptr_exists() = {bptr_found}")
|
|
61
|
+
if bptr_found:
|
|
62
|
+
for path in LAZY_DATA_RESOLVER_PATH:
|
|
63
|
+
if path.exists():
|
|
64
|
+
self.logger.info(f"LazyDataResolverV2: Found bptr manifest at {path}")
|
|
65
|
+
break
|
|
66
|
+
|
|
67
|
+
self._is_collected_by_user = not bptr_found
|
|
57
68
|
thread = Thread(target=self._prefetch_in_thread, daemon=True)
|
|
58
69
|
thread.start()
|
|
59
70
|
|
|
@@ -97,13 +108,24 @@ class LazyDataResolverV2:
|
|
|
97
108
|
def _fetch(self) -> Union[str, Exception]:
|
|
98
109
|
"""cached and locked method to fetch the data."""
|
|
99
110
|
if not self.bptr_exists():
|
|
111
|
+
self.logger.info("LazyDataResolverV2: No bptr manifest found, skipping download")
|
|
100
112
|
return "" # no data to resolve
|
|
101
|
-
|
|
113
|
+
|
|
114
|
+
self.logger.info("LazyDataResolverV2: bptr manifest found, attempting to import truss_transfer")
|
|
115
|
+
try:
|
|
116
|
+
import truss_transfer
|
|
117
|
+
self.logger.info("LazyDataResolverV2: truss_transfer imported successfully")
|
|
118
|
+
except ImportError as e:
|
|
119
|
+
self.logger.error(f"LazyDataResolverV2: Failed to import truss_transfer: {e}")
|
|
120
|
+
return e
|
|
102
121
|
|
|
103
122
|
try:
|
|
104
|
-
|
|
123
|
+
self.logger.info(f"LazyDataResolverV2: Calling truss_transfer.lazy_data_resolve with data_dir: {self._data_dir}")
|
|
124
|
+
result = truss_transfer.lazy_data_resolve(str(self._data_dir))
|
|
125
|
+
self.logger.info(f"LazyDataResolverV2: truss_transfer.lazy_data_resolve completed successfully")
|
|
126
|
+
return result
|
|
105
127
|
except Exception as e:
|
|
106
|
-
self.logger.error(f"Error occurred while fetching data: {e}")
|
|
128
|
+
self.logger.error(f"LazyDataResolverV2: Error occurred while fetching data: {e}")
|
|
107
129
|
return e
|
|
108
130
|
|
|
109
131
|
def raise_if_not_collected(self):
|
|
@@ -107,7 +107,7 @@ truss/templates/server/common/tracing.py,sha256=XSTXNoRtV8vXwveJoX3H32go0JKnLmzn
|
|
|
107
107
|
truss/templates/server/common/patches/whisper/patch.py,sha256=kDECQ-wmEpeAZFhUTQP457ofueeMsm7DgNy9tqinhJQ,2383
|
|
108
108
|
truss/templates/shared/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
109
109
|
truss/templates/shared/dynamic_config_resolver.py,sha256=75s42NFhQI5jL7BqlJH_UkuQS7ptbtFh13f2nh6X5Wo,920
|
|
110
|
-
truss/templates/shared/lazy_data_resolver.py,sha256=
|
|
110
|
+
truss/templates/shared/lazy_data_resolver.py,sha256=zRsGRF62NQUWtYkqkKx3A-F0912mN3ug6Dorkh2iJzs,7408
|
|
111
111
|
truss/templates/shared/log_config.py,sha256=l9udyu4VKHZePlfK9LQEd5TOUUodPuehypsXRSUL4Ac,5411
|
|
112
112
|
truss/templates/shared/secrets_resolver.py,sha256=3prDe3Q06NTmUEe7KCW-W4TD1CzGck9lpDG789209z4,2110
|
|
113
113
|
truss/templates/shared/serialization.py,sha256=_WC_2PPkRi-MdTwxwjG8LKQptnHi4sANfpOlKWevqWc,3736
|
|
@@ -370,8 +370,8 @@ truss_train/deployment.py,sha256=lWWANSuzBWu2M4oK4qD7n-oVR1JKdmw2Pn5BJQHg-Ck,307
|
|
|
370
370
|
truss_train/loader.py,sha256=0o66EjBaHc2YY4syxxHVR4ordJWs13lNXnKjKq2wq0U,1630
|
|
371
371
|
truss_train/public_api.py,sha256=9N_NstiUlmBuLUwH_fNG_1x7OhGCytZLNvqKXBlStrM,1220
|
|
372
372
|
truss_train/restore_from_checkpoint.py,sha256=8hdPm-WSgkt74HDPjvCjZMBpvA9MwtoYsxVjOoa7BaM,1176
|
|
373
|
-
truss-0.11.
|
|
374
|
-
truss-0.11.
|
|
375
|
-
truss-0.11.
|
|
376
|
-
truss-0.11.
|
|
377
|
-
truss-0.11.
|
|
373
|
+
truss-0.11.12rc510.dist-info/METADATA,sha256=Uwsbuea-zCQ1ovv465WHZP4s6ys9pLr18dWUwOdS9NI,6683
|
|
374
|
+
truss-0.11.12rc510.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
375
|
+
truss-0.11.12rc510.dist-info/entry_points.txt,sha256=-MwKfHHQHQ6j0HqIgvxrz3CehCmczDLTD-OsRHnjjuU,130
|
|
376
|
+
truss-0.11.12rc510.dist-info/licenses/LICENSE,sha256=FTqGzu85i-uw1Gi8E_o0oD60bH9yQ_XIGtZbA1QUYiw,1064
|
|
377
|
+
truss-0.11.12rc510.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|