mlrun 1.3.0rc37__py3-none-any.whl → 1.3.0rc39__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/__main__.py +9 -0
- mlrun/artifacts/model.py +1 -1
- mlrun/projects/project.py +11 -0
- mlrun/runtimes/base.py +1 -1
- mlrun/utils/version/version.json +2 -2
- {mlrun-1.3.0rc37.dist-info → mlrun-1.3.0rc39.dist-info}/METADATA +1 -1
- {mlrun-1.3.0rc37.dist-info → mlrun-1.3.0rc39.dist-info}/RECORD +11 -11
- {mlrun-1.3.0rc37.dist-info → mlrun-1.3.0rc39.dist-info}/LICENSE +0 -0
- {mlrun-1.3.0rc37.dist-info → mlrun-1.3.0rc39.dist-info}/WHEEL +0 -0
- {mlrun-1.3.0rc37.dist-info → mlrun-1.3.0rc39.dist-info}/entry_points.txt +0 -0
- {mlrun-1.3.0rc37.dist-info → mlrun-1.3.0rc39.dist-info}/top_level.txt +0 -0
mlrun/__main__.py
CHANGED
|
@@ -1040,6 +1040,13 @@ def logs(uid, project, offset, db, watch):
|
|
|
1040
1040
|
"https://apscheduler.readthedocs.io/en/3.x/modules/triggers/cron.html#module-apscheduler.triggers.cron."
|
|
1041
1041
|
"For using the pre-defined workflow's schedule, set --schedule 'true'",
|
|
1042
1042
|
)
|
|
1043
|
+
# TODO: Remove in 1.5.0
|
|
1044
|
+
@click.option(
|
|
1045
|
+
"--overwrite-schedule",
|
|
1046
|
+
"-os",
|
|
1047
|
+
is_flag=True,
|
|
1048
|
+
help="Overwrite a schedule when submitting a new one with the same name.",
|
|
1049
|
+
)
|
|
1043
1050
|
@click.option(
|
|
1044
1051
|
"--save-secrets",
|
|
1045
1052
|
is_flag=True,
|
|
@@ -1070,6 +1077,7 @@ def project(
|
|
|
1070
1077
|
timeout,
|
|
1071
1078
|
ensure_project,
|
|
1072
1079
|
schedule,
|
|
1080
|
+
overwrite_schedule,
|
|
1073
1081
|
save_secrets,
|
|
1074
1082
|
save,
|
|
1075
1083
|
):
|
|
@@ -1159,6 +1167,7 @@ def project(
|
|
|
1159
1167
|
local=local,
|
|
1160
1168
|
schedule=schedule,
|
|
1161
1169
|
timeout=timeout,
|
|
1170
|
+
overwrite=overwrite_schedule,
|
|
1162
1171
|
)
|
|
1163
1172
|
|
|
1164
1173
|
except Exception as exc:
|
mlrun/artifacts/model.py
CHANGED
|
@@ -549,7 +549,7 @@ def get_model(model_dir, suffix=""):
|
|
|
549
549
|
if not model_spec or model_spec.kind != "model":
|
|
550
550
|
raise ValueError(f"store artifact ({model_dir}) is not model kind")
|
|
551
551
|
# in case model_target_file is specified, use it, because that means that the actual model target path
|
|
552
|
-
# in the store is different
|
|
552
|
+
# in the store is different from the local model_file it was generated from
|
|
553
553
|
model_file = _get_file_path(
|
|
554
554
|
target, model_spec.model_target_file or model_spec.model_file
|
|
555
555
|
)
|
mlrun/projects/project.py
CHANGED
|
@@ -1864,6 +1864,7 @@ class MlrunProject(ModelObj):
|
|
|
1864
1864
|
local: bool = None,
|
|
1865
1865
|
schedule: typing.Union[str, mlrun.api.schemas.ScheduleCronTrigger, bool] = None,
|
|
1866
1866
|
timeout: int = None,
|
|
1867
|
+
overwrite: bool = False,
|
|
1867
1868
|
source: str = None,
|
|
1868
1869
|
cleanup_ttl: int = None,
|
|
1869
1870
|
) -> _PipelineRunStatus:
|
|
@@ -1895,6 +1896,8 @@ class MlrunProject(ModelObj):
|
|
|
1895
1896
|
https://apscheduler.readthedocs.io/en/3.x/modules/triggers/cron.html#module-apscheduler.triggers.cron
|
|
1896
1897
|
for using the pre-defined workflow's schedule, set `schedule=True`
|
|
1897
1898
|
:param timeout: timeout in seconds to wait for pipeline completion (watch will be activated)
|
|
1899
|
+
:param overwrite: (deprecated) replacing the schedule of the same workflow (under the same name) if exists
|
|
1900
|
+
with the new one.
|
|
1898
1901
|
:param source: remote source to use instead of the actual `project.spec.source` (used when engine is remote).
|
|
1899
1902
|
for other engines the source is to validate that the code is up-to-date
|
|
1900
1903
|
:param cleanup_ttl:
|
|
@@ -1911,6 +1914,14 @@ class MlrunProject(ModelObj):
|
|
|
1911
1914
|
FutureWarning,
|
|
1912
1915
|
)
|
|
1913
1916
|
|
|
1917
|
+
if overwrite:
|
|
1918
|
+
warnings.warn(
|
|
1919
|
+
"'overwrite' is deprecated, running a schedule is now an upsert operation. "
|
|
1920
|
+
"This will be removed in 1.5.0",
|
|
1921
|
+
# TODO: Remove this in 1.5.0
|
|
1922
|
+
FutureWarning,
|
|
1923
|
+
)
|
|
1924
|
+
|
|
1914
1925
|
arguments = arguments or {}
|
|
1915
1926
|
need_repo = self.spec._need_repo()
|
|
1916
1927
|
if self.spec.repo and self.spec.repo.is_dirty():
|
mlrun/runtimes/base.py
CHANGED
|
@@ -1804,7 +1804,7 @@ class BaseRuntimeHandler(ABC):
|
|
|
1804
1804
|
group_by: Optional[mlrun.api.schemas.ListRuntimeResourcesGroupByField] = None,
|
|
1805
1805
|
):
|
|
1806
1806
|
"""
|
|
1807
|
-
Override this to add runtime resources other
|
|
1807
|
+
Override this to add runtime resources other than pods or CRDs (which are handled by the base class) to the
|
|
1808
1808
|
output
|
|
1809
1809
|
"""
|
|
1810
1810
|
return response
|
mlrun/utils/version/version.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
mlrun/__init__.py,sha256=cCTbgyTFsXvEdaq1Cvwz8s8FE75YGIJKX58um-fnfFs,8727
|
|
2
|
-
mlrun/__main__.py,sha256=
|
|
2
|
+
mlrun/__main__.py,sha256=7rP5R0xv1YziN-yfFqy9IJM1Z16vehUNPVz_PUU0zqQ,47778
|
|
3
3
|
mlrun/builder.py,sha256=qMiPs5GHocFqvKGA_2yzGSpV831OmJvzqD66_2w5BMc,22851
|
|
4
4
|
mlrun/config.py,sha256=O1AVYgMhAHeAYAlJg_RiZOmzBDJ12Bd6eQ90VEbOM6A,49487
|
|
5
5
|
mlrun/errors.py,sha256=RABVls01sRBFPB_eRBnD49D5I_Fw_iZuVq9lcHd_QSk,6587
|
|
@@ -173,7 +173,7 @@ mlrun/artifacts/__init__.py,sha256=b86JkwaOMjN9gPzeL-RlkAtiITaVmGS9viNlvGG1lrs,1
|
|
|
173
173
|
mlrun/artifacts/base.py,sha256=l-dRIaK89NOIiBqiSbo1vbPks8CeRv83wSKndybJt0U,30849
|
|
174
174
|
mlrun/artifacts/dataset.py,sha256=30N8bYHiX6vW-w6yKAcTGHqxDQ8yGDvxYSVrR2g2VNM,20366
|
|
175
175
|
mlrun/artifacts/manager.py,sha256=O3V_T7Tw6Q425N6SwbWs5M4pAngRa6wc2DQdrdpZfDM,12110
|
|
176
|
-
mlrun/artifacts/model.py,sha256=
|
|
176
|
+
mlrun/artifacts/model.py,sha256=SmzieOo7d78CPhVyyHMmI6WltkCSVn-d72jAxhHKd7E,23673
|
|
177
177
|
mlrun/artifacts/plots.py,sha256=0Jq5OgDB1srtUlcISF696E_q3S_D-mqeMe6Wyn1S6ZQ,15383
|
|
178
178
|
mlrun/data_types/__init__.py,sha256=S8erhsRy_Kd1L_G59UYn3f4ASq2mQkl-DixVqHMBfBE,1039
|
|
179
179
|
mlrun/data_types/data_types.py,sha256=G0oAjmZ30GMZLvsELX7ewtLsAgWKZXGE-DXPzx2TvYI,4575
|
|
@@ -313,9 +313,9 @@ mlrun/platforms/other.py,sha256=DwqbdbMNlkC2nEl1yJ0jF9WZJzjVu2IVPTC3bQ_W9Y0,1185
|
|
|
313
313
|
mlrun/projects/__init__.py,sha256=dsXSDyqBhLi8OOfpdjLJpYOwC2fy_Q_Ki95Bk6gVSwc,1153
|
|
314
314
|
mlrun/projects/operations.py,sha256=RZAyhsi3VuqvJjA3gwknuSpWhM1BfOFsZ-lGX9fIXCQ,17302
|
|
315
315
|
mlrun/projects/pipelines.py,sha256=6iYVViKMUaEfqGIrVgQdl4UjtbDHe0nzlNXkLKte8fo,37882
|
|
316
|
-
mlrun/projects/project.py,sha256=
|
|
316
|
+
mlrun/projects/project.py,sha256=JHPF8cR53CotOIDqbAq473G-2pTwtNRx1wZudA6x-DU,105059
|
|
317
317
|
mlrun/runtimes/__init__.py,sha256=1rNfzU3G76BxDkqvTVVrxlQkhLDSmlzv838_56OID7E,8973
|
|
318
|
-
mlrun/runtimes/base.py,sha256=
|
|
318
|
+
mlrun/runtimes/base.py,sha256=VtzYKQLdn57xOVoLbyha84v2cyycYMqVRZXM0IMgztk,107296
|
|
319
319
|
mlrun/runtimes/constants.py,sha256=Os_6YpWE8WMhigm1h3RKvn9Uo4LXNaEbA2xNSEDDEao,6689
|
|
320
320
|
mlrun/runtimes/daskjob.py,sha256=5zjVcW1IXgTHnuIzKgH061u38ukwTVKUenVbuKcDZbs,30325
|
|
321
321
|
mlrun/runtimes/funcdoc.py,sha256=U5Hrkeo7i7CUnZFQ5g7-CyWMvXiQXPGrfsNdgsDAraQ,9190
|
|
@@ -370,11 +370,11 @@ mlrun/utils/notifications/notification/git.py,sha256=qI5Kd4U0PX8vfIVT_yjBIrToiJY
|
|
|
370
370
|
mlrun/utils/notifications/notification/ipython.py,sha256=jsM_tTV3ZzXv5NoQN2anfZJDTYsk95NDYVQnWFc9Zow,1951
|
|
371
371
|
mlrun/utils/notifications/notification/slack.py,sha256=wt6RlqJu9QC99Ki-3HNYmizYTyAnIVimFQ7bf-fYX2E,3650
|
|
372
372
|
mlrun/utils/version/__init__.py,sha256=hwfJgGWYGWFpepVGI1GbuCPqqEFGRbgguJg5sC0v4TU,614
|
|
373
|
-
mlrun/utils/version/version.json,sha256=
|
|
373
|
+
mlrun/utils/version/version.json,sha256=ZxFnQGAEp_CQf7xLYRMrW3hkl14TYpC7WNm_Wd9Sdog,89
|
|
374
374
|
mlrun/utils/version/version.py,sha256=O4Q4kwtKlI73oK7oBPuz4SVkUI8BC11E9DJIKHT91kU,1970
|
|
375
|
-
mlrun-1.3.
|
|
376
|
-
mlrun-1.3.
|
|
377
|
-
mlrun-1.3.
|
|
378
|
-
mlrun-1.3.
|
|
379
|
-
mlrun-1.3.
|
|
380
|
-
mlrun-1.3.
|
|
375
|
+
mlrun-1.3.0rc39.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
376
|
+
mlrun-1.3.0rc39.dist-info/METADATA,sha256=O4HQ7bJyHmfcx1HHFjhxnuFJEukefFGwKox2h3X8R9c,16976
|
|
377
|
+
mlrun-1.3.0rc39.dist-info/WHEEL,sha256=pkctZYzUS4AYVn6dJ-7367OJZivF2e8RA9b_ZBjif18,92
|
|
378
|
+
mlrun-1.3.0rc39.dist-info/entry_points.txt,sha256=ZbXmb36B9JmK7EaleP8MIAbZSOQXQV0iwKR6si0HUWk,47
|
|
379
|
+
mlrun-1.3.0rc39.dist-info/top_level.txt,sha256=NObLzw3maSF9wVrgSeYBv-fgnHkAJ1kEkh12DLdd5KM,6
|
|
380
|
+
mlrun-1.3.0rc39.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|