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 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
- There could be two types of log files:
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
- for file in os.listdir(str(project_logs_dir)):
257
- if file.startswith(uid):
258
- return True, project_logs_dir / file
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
- updated_at = datetime.datetime.fromisoformat(
368
- iguazio_project["attributes"]["updated_at"]
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""
@@ -1,4 +1,4 @@
1
1
  {
2
- "git_commit": "88239f881b6ace251582eebab595279b038f42f4",
3
- "version": "1.3.1-rc10"
2
+ "git_commit": "c39a103bc6462422660bcdf40270b35469ad1b48",
3
+ "version": "1.3.2-rc2"
4
4
  }
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mlrun
3
- Version: 1.3.1rc10
3
+ Version: 1.3.2rc2
4
4
  Summary: Tracking and config of machine learning runs
5
5
  Home-page: https://github.com/mlrun/mlrun
6
6
  Author: Yaron Haviv
@@ -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=r5JWMAtmxA9kIQ0RCi-DZG7njyh9GbmHL-2w_hu-r9M,9578
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=EOSdiPNMP7GPvthyBloQtwCPF633PT-t4k-v56JpXZc,31125
147
- mlrun/api/utils/clients/log_collector.py,sha256=d1Tj680X0QSC83re1vhX62z_0tt5WvNjHqKv1wMVNF4,12109
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=_b0n_o_ELghKElnSls0TVAPndgd86yl0pSatbdK34UI,89
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.1rc10.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
377
- mlrun-1.3.1rc10.dist-info/METADATA,sha256=N37l_MT3b2Wl7W1KDIMe-hGsB39UsMXoXLkDBA3Tgsg,16984
378
- mlrun-1.3.1rc10.dist-info/WHEEL,sha256=pkctZYzUS4AYVn6dJ-7367OJZivF2e8RA9b_ZBjif18,92
379
- mlrun-1.3.1rc10.dist-info/entry_points.txt,sha256=ZbXmb36B9JmK7EaleP8MIAbZSOQXQV0iwKR6si0HUWk,47
380
- mlrun-1.3.1rc10.dist-info/top_level.txt,sha256=NObLzw3maSF9wVrgSeYBv-fgnHkAJ1kEkh12DLdd5KM,6
381
- mlrun-1.3.1rc10.dist-info/RECORD,,
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,,