mlrun 1.3.1rc10__py3-none-any.whl → 1.3.2rc2__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 mlrun might be problematic. Click here for more details.
- mlrun/api/crud/logs.py +5 -7
- mlrun/api/utils/clients/iguazio.py +10 -3
- mlrun/api/utils/clients/log_collector.py +5 -0
- mlrun/utils/version/version.json +2 -2
- {mlrun-1.3.1rc10.dist-info → mlrun-1.3.2rc2.dist-info}/METADATA +1 -1
- {mlrun-1.3.1rc10.dist-info → mlrun-1.3.2rc2.dist-info}/RECORD +10 -10
- {mlrun-1.3.1rc10.dist-info → mlrun-1.3.2rc2.dist-info}/LICENSE +0 -0
- {mlrun-1.3.1rc10.dist-info → mlrun-1.3.2rc2.dist-info}/WHEEL +0 -0
- {mlrun-1.3.1rc10.dist-info → mlrun-1.3.2rc2.dist-info}/entry_points.txt +0 -0
- {mlrun-1.3.1rc10.dist-info → mlrun-1.3.2rc2.dist-info}/top_level.txt +0 -0
mlrun/api/crud/logs.py
CHANGED
|
@@ -242,10 +242,7 @@ class Logs(
|
|
|
242
242
|
def log_file_exists_for_run_uid(project: str, uid: str) -> (bool, pathlib.Path):
|
|
243
243
|
"""
|
|
244
244
|
Checks if the log file exists for the given project and uid
|
|
245
|
-
|
|
246
|
-
1. Log file which was created by the legacy logger with the following file format - project/<run-uid>)
|
|
247
|
-
2. Log file which was created by the new logger with the following file format- /project/<run-uid>-<pod-name>
|
|
248
|
-
Therefore, we check if the log file exists for both formats
|
|
245
|
+
A Run's log file path is: /mlrun/logs/{project}/{uid}
|
|
249
246
|
:param project: project name
|
|
250
247
|
:param uid: run uid
|
|
251
248
|
:return: True if the log file exists, False otherwise, and the log file path
|
|
@@ -253,9 +250,10 @@ class Logs(
|
|
|
253
250
|
project_logs_dir = project_logs_path(project)
|
|
254
251
|
if not project_logs_dir.exists():
|
|
255
252
|
return False, None
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
253
|
+
|
|
254
|
+
log_file = log_path(project, uid)
|
|
255
|
+
if log_file.exists():
|
|
256
|
+
return True, log_file
|
|
259
257
|
|
|
260
258
|
return False, None
|
|
261
259
|
|
|
@@ -364,9 +364,16 @@ class Client(
|
|
|
364
364
|
) -> typing.Optional[datetime.datetime]:
|
|
365
365
|
latest_updated_at = None
|
|
366
366
|
for iguazio_project in response_body["data"]:
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
)
|
|
367
|
+
|
|
368
|
+
# iguazio project might be in creating mode, in which case it doesn't have an updated_at field yet
|
|
369
|
+
updated_at_str = iguazio_project["attributes"].get("updated_at")
|
|
370
|
+
if not updated_at_str:
|
|
371
|
+
logger.debug(
|
|
372
|
+
"Project is in creating mode, skipping",
|
|
373
|
+
name=iguazio_project.get("attributes", {}).get("name", "unknown"),
|
|
374
|
+
)
|
|
375
|
+
continue
|
|
376
|
+
updated_at = datetime.datetime.fromisoformat(updated_at_str)
|
|
370
377
|
if latest_updated_at is None or latest_updated_at < updated_at:
|
|
371
378
|
latest_updated_at = updated_at
|
|
372
379
|
return latest_updated_at
|
|
@@ -152,6 +152,11 @@ class LogCollectorClient(
|
|
|
152
152
|
try:
|
|
153
153
|
has_logs = await self.has_logs(run_uid, project, verbose, raise_on_error)
|
|
154
154
|
if not has_logs:
|
|
155
|
+
logger.debug(
|
|
156
|
+
"Run has no logs to collect",
|
|
157
|
+
run_uid=run_uid,
|
|
158
|
+
project=project,
|
|
159
|
+
)
|
|
155
160
|
|
|
156
161
|
# run has no logs - return empty logs and exit so caller won't wait for logs or retry
|
|
157
162
|
yield b""
|
mlrun/utils/version/version.json
CHANGED
|
@@ -55,7 +55,7 @@ mlrun/api/crud/client_spec.py,sha256=VapHAcFSKCmBq7AarJkpwoHns6fXLJ-VCEQcBuBczmU
|
|
|
55
55
|
mlrun/api/crud/clusterization_spec.py,sha256=wf9uiLb3DRwegDGlRu-dgfahoyp51bxtAuB8TEnklfc,1049
|
|
56
56
|
mlrun/api/crud/feature_store.py,sha256=SAWhliY9UJAQbaJYKb7CmXTuVbovq3fDl-_5-RMxfxI,18449
|
|
57
57
|
mlrun/api/crud/functions.py,sha256=pqCTL7rsHawfynV6DfqRrWKhnWxw1MNHJhLY_og6cJo,3550
|
|
58
|
-
mlrun/api/crud/logs.py,sha256=
|
|
58
|
+
mlrun/api/crud/logs.py,sha256=H-7WW5S1Hgg1R8UD1_GFycxUdYFWCNgRWxTjO-_f9l4,9258
|
|
59
59
|
mlrun/api/crud/marketplace.py,sha256=dDJG6puO_asotN8gRgkjwVXQwkLFR7MoTghAcb7TRY4,8180
|
|
60
60
|
mlrun/api/crud/pipelines.py,sha256=kQJD8Qzq6N2pMnMJGv_vUb8LlaQVlXPJDNTjQ1qkE60,13968
|
|
61
61
|
mlrun/api/crud/projects.py,sha256=kCK1vQv8C6EqUlysZAAK6xto5O8t9wqAIQv3l-s7xwQ,14153
|
|
@@ -143,8 +143,8 @@ mlrun/api/utils/auth/providers/nop.py,sha256=5hZ880PMHagbUHVAQcC6FSQUCQyxk8UimKY
|
|
|
143
143
|
mlrun/api/utils/auth/providers/opa.py,sha256=Tg9MWaka2iBhh26S313LFr5v-46_kG9D3F2-DVXXumU,10835
|
|
144
144
|
mlrun/api/utils/clients/__init__.py,sha256=B-yvMk7vTs3QqtlPkM4pnZk_B4QKTGnfNhYr2n4Z30M,571
|
|
145
145
|
mlrun/api/utils/clients/chief.py,sha256=DVYvWEWm-GmMZBscrcY6ZbjpWwaO-ZYu3X2BTrfZ4DM,13232
|
|
146
|
-
mlrun/api/utils/clients/iguazio.py,sha256=
|
|
147
|
-
mlrun/api/utils/clients/log_collector.py,sha256=
|
|
146
|
+
mlrun/api/utils/clients/iguazio.py,sha256=ZxjJw3fRD3MRxLCJfxtQap3B-unUChwekKivLEysS78,31511
|
|
147
|
+
mlrun/api/utils/clients/log_collector.py,sha256=5jgixIbzX4GFkOGUrIaTBHDyzlzT_DfHjnAbx6qp82A,12281
|
|
148
148
|
mlrun/api/utils/clients/nuclio.py,sha256=D-yzYXX6rOHiZ0jO96EuQCGs_Z7fadThLavVYKJaM2Y,9841
|
|
149
149
|
mlrun/api/utils/clients/protocols/__init__.py,sha256=xY3wHC4TEJgez7qtnn1pQvHosi8-5UJOCtyGBS7FcGE,571
|
|
150
150
|
mlrun/api/utils/clients/protocols/grpc.py,sha256=WLwnKSEf2X9_PzaaWBuqGKHlD7H39vf8Cch5UerXEoQ,2564
|
|
@@ -371,11 +371,11 @@ mlrun/utils/notifications/notification/git.py,sha256=qI5Kd4U0PX8vfIVT_yjBIrToiJY
|
|
|
371
371
|
mlrun/utils/notifications/notification/ipython.py,sha256=jsM_tTV3ZzXv5NoQN2anfZJDTYsk95NDYVQnWFc9Zow,1951
|
|
372
372
|
mlrun/utils/notifications/notification/slack.py,sha256=wt6RlqJu9QC99Ki-3HNYmizYTyAnIVimFQ7bf-fYX2E,3650
|
|
373
373
|
mlrun/utils/version/__init__.py,sha256=hwfJgGWYGWFpepVGI1GbuCPqqEFGRbgguJg5sC0v4TU,614
|
|
374
|
-
mlrun/utils/version/version.json,sha256=
|
|
374
|
+
mlrun/utils/version/version.json,sha256=y-flKOdiy9cQRhWMwLpZIvLuItoAr-Xj-7SHwj2dSqM,88
|
|
375
375
|
mlrun/utils/version/version.py,sha256=O4Q4kwtKlI73oK7oBPuz4SVkUI8BC11E9DJIKHT91kU,1970
|
|
376
|
-
mlrun-1.3.
|
|
377
|
-
mlrun-1.3.
|
|
378
|
-
mlrun-1.3.
|
|
379
|
-
mlrun-1.3.
|
|
380
|
-
mlrun-1.3.
|
|
381
|
-
mlrun-1.3.
|
|
376
|
+
mlrun-1.3.2rc2.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
377
|
+
mlrun-1.3.2rc2.dist-info/METADATA,sha256=xc2q7vBfdxrV7BJFXRPDRZ8xCIgWiPXtSc2R3C0f_4s,16983
|
|
378
|
+
mlrun-1.3.2rc2.dist-info/WHEEL,sha256=pkctZYzUS4AYVn6dJ-7367OJZivF2e8RA9b_ZBjif18,92
|
|
379
|
+
mlrun-1.3.2rc2.dist-info/entry_points.txt,sha256=ZbXmb36B9JmK7EaleP8MIAbZSOQXQV0iwKR6si0HUWk,47
|
|
380
|
+
mlrun-1.3.2rc2.dist-info/top_level.txt,sha256=NObLzw3maSF9wVrgSeYBv-fgnHkAJ1kEkh12DLdd5KM,6
|
|
381
|
+
mlrun-1.3.2rc2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|