mlrun 1.10.0rc4__py3-none-any.whl → 1.10.0rc5__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/config.py CHANGED
@@ -234,7 +234,10 @@ default_config = {
234
234
  "model_endpoint_creation": "600",
235
235
  "model_endpoint_tsdb_leftovers": "900",
236
236
  },
237
- "runtimes": {"dask": "600"},
237
+ "runtimes": {
238
+ "dask": "600",
239
+ "dask_cluster_start": "300",
240
+ },
238
241
  "push_notifications": "60",
239
242
  },
240
243
  },
@@ -409,8 +409,8 @@ class ModelMonitoringApplicationBase(MonitoringApplicationToDict, ABC):
409
409
  tag: Optional[str] = None,
410
410
  run_local: bool = True,
411
411
  auto_build: bool = True,
412
- sample_data: Optional[pd.DataFrame] = None,
413
- reference_data: Optional[pd.DataFrame] = None,
412
+ sample_data: Optional[Union[pd.DataFrame, str]] = None,
413
+ reference_data: Optional[Union[pd.DataFrame, str]] = None,
414
414
  image: Optional[str] = None,
415
415
  with_repo: Optional[bool] = False,
416
416
  class_handler: Optional[str] = None,
@@ -434,9 +434,11 @@ class ModelMonitoringApplicationBase(MonitoringApplicationToDict, ABC):
434
434
  :param tag: Tag for the function.
435
435
  :param run_local: Whether to run the function locally or remotely.
436
436
  :param auto_build: Whether to auto build the function.
437
- :param sample_data: Pandas data-frame as the current dataset.
437
+ :param sample_data: Pandas data-frame or :py:class:`~mlrun.artifacts.dataset.DatasetArtifact` URI as
438
+ the current dataset.
438
439
  When set, it replaces the data read from the model endpoint's offline source.
439
- :param reference_data: Pandas data-frame of the reference dataset.
440
+ :param reference_data: Pandas data-frame or :py:class:`~mlrun.artifacts.dataset.DatasetArtifact` URI as
441
+ the reference dataset.
440
442
  When set, its statistics override the model endpoint's feature statistics.
441
443
  :param image: Docker image to run the job on (when running remotely).
442
444
  :param with_repo: Whether to clone the current repo to the build source.
@@ -515,7 +517,9 @@ class ModelMonitoringApplicationBase(MonitoringApplicationToDict, ABC):
515
517
  (sample_data, "sample_data"),
516
518
  (reference_data, "reference_data"),
517
519
  ]:
518
- if data is not None:
520
+ if isinstance(data, str):
521
+ inputs[identifier] = data
522
+ elif data is not None:
519
523
  key = f"{job.metadata.name}_{identifier}"
520
524
  inputs[identifier] = project.log_dataset(
521
525
  key,
mlrun/runtimes/daskjob.py CHANGED
@@ -255,7 +255,11 @@ class DaskCluster(KubejobRuntime):
255
255
  background_task = db.start_function(func_url=self._function_uri())
256
256
  if watch:
257
257
  now = datetime.datetime.utcnow()
258
- timeout = now + datetime.timedelta(minutes=10)
258
+ timeout = now + datetime.timedelta(
259
+ seconds=int(
260
+ mlrun.mlconf.background_tasks.default_timeouts.runtimes.dask_cluster_start
261
+ )
262
+ )
259
263
  while now < timeout:
260
264
  background_task = db.get_project_background_task(
261
265
  background_task.metadata.project, background_task.metadata.name
@@ -282,6 +286,9 @@ class DaskCluster(KubejobRuntime):
282
286
  return
283
287
  time.sleep(5)
284
288
  now = datetime.datetime.utcnow()
289
+ raise mlrun.errors.MLRunTimeoutError(
290
+ "Timeout waiting for Dask cluster to start"
291
+ )
285
292
 
286
293
  def close(self, running=True):
287
294
  from dask.distributed import default_client
mlrun/utils/helpers.py CHANGED
@@ -893,7 +893,8 @@ def enrich_image_url(
893
893
 
894
894
  # Add python version tag if needed
895
895
  if image_url == "python" and client_python_version:
896
- image_url = f"python:{client_python_version}"
896
+ image_tag = ".".join(client_python_version.split(".")[:2])
897
+ image_url = f"python:{image_tag}"
897
898
 
898
899
  client_version = _convert_python_package_version_to_image_tag(client_version)
899
900
  server_version = _convert_python_package_version_to_image_tag(
@@ -1,4 +1,4 @@
1
1
  {
2
- "git_commit": "aca543927ff594b8db166e423cb47001dfdf7bcc",
3
- "version": "1.10.0-rc4"
2
+ "git_commit": "79f44d5a732a54257206f3ef45da63447c1f1fbd",
3
+ "version": "1.10.0-rc5"
4
4
  }
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mlrun
3
- Version: 1.10.0rc4
3
+ Version: 1.10.0rc5
4
4
  Summary: Tracking and config of machine learning runs
5
5
  Home-page: https://github.com/mlrun/mlrun
6
6
  Author: Yaron Haviv
@@ -1,6 +1,6 @@
1
1
  mlrun/__init__.py,sha256=uhNeFUVaV2spRa94u9tNZjMdLBixdu-9iY-uzORjsKQ,7448
2
2
  mlrun/__main__.py,sha256=6Mihuy3M7l80rJKM-MeKJdzwMbidfgVw-i7CxqToNnY,46351
3
- mlrun/config.py,sha256=1LY0qRlmff4iWlQKQGb5XfOWaWjcyKSnGbHipiRBgss,71912
3
+ mlrun/config.py,sha256=C4qK2_M8p31egVvBUmSDKOe4TuYwGpG8TODyqdJ4vZo,71988
4
4
  mlrun/errors.py,sha256=bAk0t_qmCxQSPNK0TugOAfA5R6f0G6OYvEvXUWSJ_5U,9062
5
5
  mlrun/execution.py,sha256=Yo1_UX9ARZ8IDYX6B5FPngnIy8hBhuzwL2-bIeXlMg8,54581
6
6
  mlrun/features.py,sha256=jMEXo6NB36A6iaxNEJWzdtYwUmglYD90OIKTIEeWhE8,15841
@@ -228,7 +228,7 @@ mlrun/model_monitoring/stream_processing.py,sha256=Gu3TQzYoNjbreZYI73-F49QpYrod9
228
228
  mlrun/model_monitoring/writer.py,sha256=rGRFzSOkqZWvD3Y6sVk2H1Gepfnkzkp9ce00PsApTLo,8288
229
229
  mlrun/model_monitoring/applications/__init__.py,sha256=MaH_n4GiqqQvSkntM5yQ7_FCANtM_IfgK-IJTdo4G_E,757
230
230
  mlrun/model_monitoring/applications/_application_steps.py,sha256=mjuBVqa7KY_Ymoo8DzddthUpBZyfio2e4O5ce-d-2eY,8444
231
- mlrun/model_monitoring/applications/base.py,sha256=f73LycKUG85invl6l7V4MRiRd1bx8jmepayrpwpr3c0,25131
231
+ mlrun/model_monitoring/applications/base.py,sha256=7x7qOnJZ5yoab1EWdG_5PNh5AOGM9mQkUJ_2hznUG3A,25425
232
232
  mlrun/model_monitoring/applications/context.py,sha256=VfyPCIdO4z73uqFcJs87jzSI4PatX5N5Xicg8Ye1Bag,16968
233
233
  mlrun/model_monitoring/applications/histogram_data_drift.py,sha256=2qgfFmrpHf-x0_EaHD-0T28piwSQzw-HH71aV1GwbZs,15389
234
234
  mlrun/model_monitoring/applications/results.py,sha256=_qmj6TWT0SR2bi7gUyRKBU418eGgGoLW2_hTJ7S-ock,5782
@@ -275,7 +275,7 @@ mlrun/projects/pipelines.py,sha256=wud7ezeEmhIJvfYE_wzQbA4ygEfGXHtbOtoOpan6poY,4
275
275
  mlrun/projects/project.py,sha256=Fqk_YCmuNSHCk1SKVYkAboxgFHOUZcsQ1DmJp2oYjCg,250056
276
276
  mlrun/runtimes/__init__.py,sha256=J9Sy2HiyMlztNv6VUurMzF5H2XzttNil8nRsWDsqLyg,8923
277
277
  mlrun/runtimes/base.py,sha256=QsHYTIMlfzElbGZ3yAzyHK5IdXFIfsYIv3dRUnN7c44,38493
278
- mlrun/runtimes/daskjob.py,sha256=BHJ-BiAIozj9vQAnpsR0mN9xXQ7RE8aISEGPUR0d2-k,19558
278
+ mlrun/runtimes/daskjob.py,sha256=_nN70OLkscIKUp14rAsHGxCB5lLiAxw8f0m2vj-gWN8,19827
279
279
  mlrun/runtimes/funcdoc.py,sha256=zRFHrJsV8rhDLJwoUhcfZ7Cs0j-tQ76DxwUqdXV_Wyc,9810
280
280
  mlrun/runtimes/function_reference.py,sha256=fnMKUEieKgy4JyVLhFpDtr6JvKgOaQP8F_K2H3-Pk9U,5030
281
281
  mlrun/runtimes/generators.py,sha256=X8NDlCEPveDDPOHtOGcSpbl3pAVM3DP7fuPj5xVhxEY,7290
@@ -323,7 +323,7 @@ mlrun/utils/azure_vault.py,sha256=IEFizrDGDbAaoWwDr1WoA88S_EZ0T--vjYtY-i0cvYQ,34
323
323
  mlrun/utils/clones.py,sha256=qbAGyEbSvlewn3Tw_DpQZP9z6MGzFhSaZfI1CblX8Fg,7515
324
324
  mlrun/utils/condition_evaluator.py,sha256=-nGfRmZzivn01rHTroiGY4rqEv8T1irMyhzxEei-sKc,1897
325
325
  mlrun/utils/db.py,sha256=UIYDPHvPxim8tpjeD4S2QbfTx9Bhe-VqUQjqYTRHFuo,2185
326
- mlrun/utils/helpers.py,sha256=Ox9y4mqSxBj_bC0CvV3f1GqyaKubfuOXeDFpNFP1Eok,79157
326
+ mlrun/utils/helpers.py,sha256=7VnHx4CAJKGLe9WGlyFXdYlKL_dM9-qkffciZX0rXio,79212
327
327
  mlrun/utils/http.py,sha256=5ZU2VpokaUM_DT3HBSqTm8xjUqTPjZN5fKkSIvKlTl0,8704
328
328
  mlrun/utils/logger.py,sha256=RG0m1rx6gfkJ-2C1r_p41MMpPiaDYqaYM2lYHDlNZEU,14767
329
329
  mlrun/utils/regex.py,sha256=FcRwWD8x9X3HLhCCU2F0AVKTFah784Pr7ZAe3a02jw8,5199
@@ -342,11 +342,11 @@ mlrun/utils/notifications/notification/mail.py,sha256=ZyJ3eqd8simxffQmXzqd3bgbAq
342
342
  mlrun/utils/notifications/notification/slack.py,sha256=kfhogR5keR7Zjh0VCjJNK3NR5_yXT7Cv-x9GdOUW4Z8,7294
343
343
  mlrun/utils/notifications/notification/webhook.py,sha256=zxh8CAlbPnTazsk6r05X5TKwqUZVOH5KBU2fJbzQlG4,5330
344
344
  mlrun/utils/version/__init__.py,sha256=YnzE6tlf24uOQ8y7Z7l96QLAI6-QEii7-77g8ynmzy0,613
345
- mlrun/utils/version/version.json,sha256=R8YDmn_EnZg4pAGw2hJaHCTLwPrwPSNo85DO0cCu6j4,89
345
+ mlrun/utils/version/version.json,sha256=W8XgYUjL11RNE-X6HEv8SjYxylK4rnmPLRcxKiLk2-Q,89
346
346
  mlrun/utils/version/version.py,sha256=M2hVhRrgkN3SxacZHs3ZqaOsqAA7B6a22ne324IQ1HE,1877
347
- mlrun-1.10.0rc4.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
348
- mlrun-1.10.0rc4.dist-info/METADATA,sha256=R1CHFvM8LK8w1hHze40hl2jyvF_3NPROM6p2WTBZJqM,25777
349
- mlrun-1.10.0rc4.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
350
- mlrun-1.10.0rc4.dist-info/entry_points.txt,sha256=1Owd16eAclD5pfRCoJpYC2ZJSyGNTtUr0nCELMioMmU,46
351
- mlrun-1.10.0rc4.dist-info/top_level.txt,sha256=NObLzw3maSF9wVrgSeYBv-fgnHkAJ1kEkh12DLdd5KM,6
352
- mlrun-1.10.0rc4.dist-info/RECORD,,
347
+ mlrun-1.10.0rc5.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
348
+ mlrun-1.10.0rc5.dist-info/METADATA,sha256=2NtzMXeQa_t0ZXLxOPuYDOhv3_GRXkCk_LfMaF42RHs,25777
349
+ mlrun-1.10.0rc5.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
350
+ mlrun-1.10.0rc5.dist-info/entry_points.txt,sha256=1Owd16eAclD5pfRCoJpYC2ZJSyGNTtUr0nCELMioMmU,46
351
+ mlrun-1.10.0rc5.dist-info/top_level.txt,sha256=NObLzw3maSF9wVrgSeYBv-fgnHkAJ1kEkh12DLdd5KM,6
352
+ mlrun-1.10.0rc5.dist-info/RECORD,,