mlrun 1.7.1rc4__py3-none-any.whl → 1.7.1rc5__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/projects/pipelines.py +4 -2
- mlrun/utils/helpers.py +12 -2
- mlrun/utils/version/version.json +2 -2
- {mlrun-1.7.1rc4.dist-info → mlrun-1.7.1rc5.dist-info}/METADATA +1 -1
- {mlrun-1.7.1rc4.dist-info → mlrun-1.7.1rc5.dist-info}/RECORD +9 -9
- {mlrun-1.7.1rc4.dist-info → mlrun-1.7.1rc5.dist-info}/WHEEL +1 -1
- {mlrun-1.7.1rc4.dist-info → mlrun-1.7.1rc5.dist-info}/LICENSE +0 -0
- {mlrun-1.7.1rc4.dist-info → mlrun-1.7.1rc5.dist-info}/entry_points.txt +0 -0
- {mlrun-1.7.1rc4.dist-info → mlrun-1.7.1rc5.dist-info}/top_level.txt +0 -0
mlrun/projects/pipelines.py
CHANGED
|
@@ -984,14 +984,16 @@ def github_webhook(request):
|
|
|
984
984
|
return {"msg": "pushed"}
|
|
985
985
|
|
|
986
986
|
|
|
987
|
-
def load_and_run(*args, **kwargs):
|
|
987
|
+
def load_and_run(context, *args, **kwargs):
|
|
988
988
|
"""
|
|
989
989
|
This function serves as an alias to `load_and_run_workflow`,
|
|
990
990
|
allowing to continue using `load_and_run` without modifying existing workflows or exported runs.
|
|
991
991
|
This approach ensures backward compatibility,
|
|
992
992
|
while directing all new calls to the updated `load_and_run_workflow` function.
|
|
993
993
|
"""
|
|
994
|
-
|
|
994
|
+
kwargs.pop("load_only", None)
|
|
995
|
+
kwargs.pop("save", None)
|
|
996
|
+
load_and_run_workflow(context, *args, **kwargs)
|
|
995
997
|
|
|
996
998
|
|
|
997
999
|
def load_and_run_workflow(
|
mlrun/utils/helpers.py
CHANGED
|
@@ -1226,14 +1226,24 @@ def datetime_to_iso(time_obj: Optional[datetime]) -> Optional[str]:
|
|
|
1226
1226
|
return time_obj.isoformat()
|
|
1227
1227
|
|
|
1228
1228
|
|
|
1229
|
-
def enrich_datetime_with_tz_info(timestamp_string):
|
|
1229
|
+
def enrich_datetime_with_tz_info(timestamp_string) -> Optional[datetime]:
|
|
1230
1230
|
if not timestamp_string:
|
|
1231
1231
|
return timestamp_string
|
|
1232
1232
|
|
|
1233
1233
|
if timestamp_string and not mlrun.utils.helpers.has_timezone(timestamp_string):
|
|
1234
1234
|
timestamp_string += datetime.now(timezone.utc).astimezone().strftime("%z")
|
|
1235
1235
|
|
|
1236
|
-
|
|
1236
|
+
for _format in [
|
|
1237
|
+
# e.g: 2021-08-25 12:00:00.000Z
|
|
1238
|
+
"%Y-%m-%d %H:%M:%S.%f%z",
|
|
1239
|
+
# e.g: 2024-11-11 07:44:56+0000
|
|
1240
|
+
"%Y-%m-%d %H:%M:%S%z",
|
|
1241
|
+
]:
|
|
1242
|
+
try:
|
|
1243
|
+
return datetime.strptime(timestamp_string, _format)
|
|
1244
|
+
except ValueError as exc:
|
|
1245
|
+
last_exc = exc
|
|
1246
|
+
raise last_exc
|
|
1237
1247
|
|
|
1238
1248
|
|
|
1239
1249
|
def has_timezone(timestamp):
|
mlrun/utils/version/version.json
CHANGED
|
@@ -272,7 +272,7 @@ mlrun/platforms/__init__.py,sha256=ggSGF7inITs6S-vj9u4S9X_5psgbA0G3GVqf7zu8qYc,2
|
|
|
272
272
|
mlrun/platforms/iguazio.py,sha256=MNRzIzxcc_3wsePLjBXuKKKSaObVnnrC3ZyXgSRu8m0,13697
|
|
273
273
|
mlrun/projects/__init__.py,sha256=0Krf0WIKfnZa71WthYOg0SoaTodGg3sV_hK3f_OlTPI,1220
|
|
274
274
|
mlrun/projects/operations.py,sha256=gtqSU9OvYOV-b681uQtWgnW7YSnX6qfa1Mt1Xm4f1ZI,19752
|
|
275
|
-
mlrun/projects/pipelines.py,sha256=
|
|
275
|
+
mlrun/projects/pipelines.py,sha256=6_EPuKQ5pN1z-3UgyGeMyDZU1hrkkgv7Fgh5KGE074Q,45398
|
|
276
276
|
mlrun/projects/project.py,sha256=UOu625oJUwJA9o--MboL19Zvqv_xDqO9oCx-0Rs_Khk,191436
|
|
277
277
|
mlrun/runtimes/__init__.py,sha256=egLM94cDMUyQ1GVABdFGXUQcDhU70lP3k7qSnM_UnHY,9008
|
|
278
278
|
mlrun/runtimes/base.py,sha256=JXWmTIcm3b0klGUOHDlyFNa3bUgsNzQIgWhUQpSZoE0,37692
|
|
@@ -323,7 +323,7 @@ mlrun/utils/azure_vault.py,sha256=IEFizrDGDbAaoWwDr1WoA88S_EZ0T--vjYtY-i0cvYQ,34
|
|
|
323
323
|
mlrun/utils/clones.py,sha256=mJpx4nyFiY6jlBCvFABsNuyi_mr1mvfPWn81vlafpOU,7361
|
|
324
324
|
mlrun/utils/condition_evaluator.py,sha256=-nGfRmZzivn01rHTroiGY4rqEv8T1irMyhzxEei-sKc,1897
|
|
325
325
|
mlrun/utils/db.py,sha256=blQgkWMfFH9lcN4sgJQcPQgEETz2Dl_zwbVA0SslpFg,2186
|
|
326
|
-
mlrun/utils/helpers.py,sha256=
|
|
326
|
+
mlrun/utils/helpers.py,sha256=bYgoOLM_Yire6idrqcz_XIa-bFKE72OomxrHWSgmGWQ,61425
|
|
327
327
|
mlrun/utils/http.py,sha256=t6FrXQstZm9xVVjxqIGiLzrwZNCR4CSienSOuVgNIcI,8706
|
|
328
328
|
mlrun/utils/logger.py,sha256=cag2J30-jynIHmHZ2J8RYmVMNhYBGgAoimc5sbk-A1U,10016
|
|
329
329
|
mlrun/utils/regex.py,sha256=b0AUa2THS-ELzJj0grl5b8Stq609F2XomTZkD9SB1fQ,4900
|
|
@@ -341,11 +341,11 @@ mlrun/utils/notifications/notification/ipython.py,sha256=ZtVL30B_Ha0VGoo4LxO-voT
|
|
|
341
341
|
mlrun/utils/notifications/notification/slack.py,sha256=wqpFGr5BTvFO5KuUSzFfxsgmyU1Ohq7fbrGeNe9TXOk,7006
|
|
342
342
|
mlrun/utils/notifications/notification/webhook.py,sha256=cb9w1Mc8ENfJBdgan7iiVHK9eVls4-R3tUxmXM-P-8I,4746
|
|
343
343
|
mlrun/utils/version/__init__.py,sha256=7kkrB7hEZ3cLXoWj1kPoDwo4MaswsI2JVOBpbKgPAgc,614
|
|
344
|
-
mlrun/utils/version/version.json,sha256=
|
|
344
|
+
mlrun/utils/version/version.json,sha256=xd2abWgGQl7rN-nzls-IJ6_5UTRylXfPDwAi7dXwblo,88
|
|
345
345
|
mlrun/utils/version/version.py,sha256=eEW0tqIAkU9Xifxv8Z9_qsYnNhn3YH7NRAfM-pPLt1g,1878
|
|
346
|
-
mlrun-1.7.
|
|
347
|
-
mlrun-1.7.
|
|
348
|
-
mlrun-1.7.
|
|
349
|
-
mlrun-1.7.
|
|
350
|
-
mlrun-1.7.
|
|
351
|
-
mlrun-1.7.
|
|
346
|
+
mlrun-1.7.1rc5.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
347
|
+
mlrun-1.7.1rc5.dist-info/METADATA,sha256=DnE7Td3ao4a-shSHuUXKDgSiit_wDgDpmzoQTTPOBbs,24486
|
|
348
|
+
mlrun-1.7.1rc5.dist-info/WHEEL,sha256=R06PA3UVYHThwHvxuRWMqaGcr-PuniXahwjmQRFMEkY,91
|
|
349
|
+
mlrun-1.7.1rc5.dist-info/entry_points.txt,sha256=1Owd16eAclD5pfRCoJpYC2ZJSyGNTtUr0nCELMioMmU,46
|
|
350
|
+
mlrun-1.7.1rc5.dist-info/top_level.txt,sha256=NObLzw3maSF9wVrgSeYBv-fgnHkAJ1kEkh12DLdd5KM,6
|
|
351
|
+
mlrun-1.7.1rc5.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|