mlrun 1.5.0rc16__py3-none-any.whl → 1.5.0rc17__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.

@@ -409,6 +409,11 @@ async def ingest_feature_set(
409
409
  auth_info,
410
410
  )
411
411
 
412
+ # Set the run db instance with the current db session
413
+ await run_in_threadpool(
414
+ feature_set._override_run_db,
415
+ mlrun.api.api.utils.get_run_db_instance(db_session),
416
+ )
412
417
  if ingest_parameters.targets:
413
418
  data_targets = [
414
419
  DataTargetBase.from_dict(data_target.dict())
@@ -227,6 +227,11 @@ class ModelEndpoints:
227
227
  timestamp_key=mlrun.common.schemas.model_monitoring.EventFieldType.TIMESTAMP,
228
228
  description=f"Monitoring feature set for endpoint: {model_endpoint.spec.model}",
229
229
  )
230
+
231
+ # Set the run db instance with the current db session
232
+ feature_set._override_run_db(
233
+ mlrun.api.api.utils.get_run_db_instance(db_session)
234
+ )
230
235
  feature_set.metadata.project = model_endpoint.metadata.project
231
236
 
232
237
  feature_set.metadata.labels = {
@@ -424,6 +424,9 @@ class FeatureSet(ModelObj):
424
424
  else:
425
425
  return mlrun.get_run_db()
426
426
 
427
+ def _override_run_db(self, run_db):
428
+ self._run_db = run_db
429
+
427
430
  def get_target_path(self, name=None):
428
431
  """get the url/path for an offline or specified data target"""
429
432
  target = get_offline_target(self, name=name)
@@ -167,7 +167,7 @@ class RemoteVectorResponse:
167
167
  if self.with_indexes:
168
168
  columns += self.vector.status.index_keys
169
169
  if self.vector.status.timestamp_key is not None:
170
- columns.append(self.vector.status.timestamp_key)
170
+ columns.insert(0, self.vector.status.timestamp_key)
171
171
 
172
172
  file_format = kwargs.get("format")
173
173
  if not file_format:
@@ -356,7 +356,14 @@ class VirtualDrift:
356
356
  # Calculate the feature's drift mean:
357
357
  tvd = results[TotalVarianceDistance.NAME]
358
358
  hellinger = results[HellingerDistance.NAME]
359
- if not tvd or not hellinger:
359
+ if tvd is None or hellinger is None:
360
+ logger.warning(
361
+ "Can't calculate drift for this feature because at least one of the required"
362
+ "statistical metrics is missing",
363
+ feature=feature,
364
+ tvd=tvd,
365
+ hellinger=hellinger,
366
+ )
360
367
  continue
361
368
  metrics_results_dictionary = (tvd + hellinger) / 2
362
369
  # Decision rule for drift detection:
@@ -52,7 +52,7 @@ def get_workflow_engine(engine_kind, local=False):
52
52
  elif engine_kind == "remote":
53
53
  raise mlrun.errors.MLRunInvalidArgumentError(
54
54
  "cannot run a remote pipeline locally using `kind='remote'` and `local=True`. "
55
- "in order to run a local pipeline remotely, please use `engine='remote: local'` instead"
55
+ "in order to run a local pipeline remotely, please use `engine='remote:local'` instead"
56
56
  )
57
57
  return _LocalRunner
58
58
  if not engine_kind or engine_kind == "kfp":
mlrun/projects/project.py CHANGED
@@ -1265,7 +1265,7 @@ class MlrunProject(ModelObj):
1265
1265
  :param name: name of the workflow
1266
1266
  :param workflow_path: url/path for the workflow file
1267
1267
  :param embed: add the workflow code into the project.yaml
1268
- :param engine: workflow processing engine ("kfp" or "local")
1268
+ :param engine: workflow processing engine ("kfp", "local", "remote" or "remote:local")
1269
1269
  :param args_schema: list of arg schema definitions (:py:class`~mlrun.model.EntrypointParam`)
1270
1270
  :param handler: workflow function handler
1271
1271
  :param schedule: ScheduleCronTrigger class instance or a standard crontab expression string
@@ -1285,8 +1285,9 @@ class MlrunProject(ModelObj):
1285
1285
  f"Invalid 'workflow_path': '{workflow_path}'. Please provide a valid URL/path to a file."
1286
1286
  )
1287
1287
 
1288
- if image and engine not in ["remote"]:
1289
- logger.warning("Image is only relevant for remote workflows, ignoring it")
1288
+ # engine could be "remote" or "remote:local"
1289
+ if image and ((engine and "remote" in engine) or schedule):
1290
+ logger.warning("Image is only relevant for 'remote' engine, ignoring it")
1290
1291
 
1291
1292
  if embed:
1292
1293
  if (
@@ -2496,6 +2497,8 @@ class MlrunProject(ModelObj):
2496
2497
  inner_engine = None
2497
2498
  if engine and engine.startswith("remote"):
2498
2499
  if ":" in engine:
2500
+
2501
+ # inner could be either kfp or local
2499
2502
  engine, inner_engine = engine.split(":")
2500
2503
  elif workflow_spec.schedule:
2501
2504
  inner_engine = engine
@@ -1,4 +1,4 @@
1
1
  {
2
- "git_commit": "7651a4c2cd1fb11dd6f068fdec3bf3cc6390ddea",
3
- "version": "1.5.0-rc16"
2
+ "git_commit": "f429a0c8d769659dd17515b9056234b9d9561d86",
3
+ "version": "1.5.0-rc17"
4
4
  }
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mlrun
3
- Version: 1.5.0rc16
3
+ Version: 1.5.0rc17
4
4
  Summary: Tracking and config of machine learning runs
5
5
  Home-page: https://github.com/mlrun/mlrun
6
6
  Author: Yaron Haviv
@@ -29,7 +29,7 @@ mlrun/api/api/endpoints/background_tasks.py,sha256=5SV4iDF-dZR878kp77VpANRb86BJY
29
29
  mlrun/api/api/endpoints/client_spec.py,sha256=lN2By-KGzHuzNTGiJk0RK3SM6ZUr3VLgsudsymrtZE8,1214
30
30
  mlrun/api/api/endpoints/clusterization_spec.py,sha256=0eSG7TSt647V7-A-uI5CLRItkVOBqIBM9ep_fiMFqPI,1175
31
31
  mlrun/api/api/endpoints/datastore_profile.py,sha256=yzW4VI7yYwWRAHieMcBch4IVz3WE2ctLrE2fN55ci2w,7475
32
- mlrun/api/api/endpoints/feature_store.py,sha256=mq6XVv9zaW7zU-XRHh8X2gTwk-z6a1QE3bcuOdR6jQU,28853
32
+ mlrun/api/api/endpoints/feature_store.py,sha256=OwNnHw_yUZ6P4NZEwD2w4j2hks6xmBaGbTqi1Q8j75c,29045
33
33
  mlrun/api/api/endpoints/files.py,sha256=dFwmP40O2MXI1CmU3gJ1XrOVjSubpb0KJtguWJC5Bn4,6712
34
34
  mlrun/api/api/endpoints/frontend_spec.py,sha256=r8r6BSDpYcUpWKJX7zqXJPtYBZHzfZILd1w-SIikea8,5530
35
35
  mlrun/api/api/endpoints/functions.py,sha256=WSQWv0QXMoGgnEunSMQBbPFVig0H8hdbxkaGokUgrBQ,41111
@@ -73,7 +73,7 @@ mlrun/api/crud/model_monitoring/__init__.py,sha256=_rZmfvis_Qkhephv_SEgzqUVuC4bY
73
73
  mlrun/api/crud/model_monitoring/deployment.py,sha256=hHvknNfPJKBhC_QmxSEjojfvFUTkokw8ZTi8FBL8s1o,32279
74
74
  mlrun/api/crud/model_monitoring/grafana.py,sha256=7D-sUY3PjFh7_HjYe-KWryvepxO9zLArVC3U7IChuqA,17494
75
75
  mlrun/api/crud/model_monitoring/helpers.py,sha256=5K6y7hIjBdxY__rNfluINFgis1IJZQWuK-TjP26ypag,6114
76
- mlrun/api/crud/model_monitoring/model_endpoints.py,sha256=s1KwAAZ0sz6SY5XZT4eyyVKBTysnqHzEnLdtwd11aTU,31423
76
+ mlrun/api/crud/model_monitoring/model_endpoints.py,sha256=WSVopB2hV2YFiyKTaXXBdpvBDt-zQ0Nv8qPrOiQ2T2c,31598
77
77
  mlrun/api/crud/runtimes/__init__.py,sha256=xY3wHC4TEJgez7qtnn1pQvHosi8-5UJOCtyGBS7FcGE,571
78
78
  mlrun/api/crud/runtimes/nuclio/__init__.py,sha256=xY3wHC4TEJgez7qtnn1pQvHosi8-5UJOCtyGBS7FcGE,571
79
79
  mlrun/api/crud/runtimes/nuclio/function.py,sha256=Tgca7uACPlyeoGiLkIHsX0d9SePy_a6pEW03ryGMdPc,18762
@@ -264,14 +264,14 @@ mlrun/db/nopdb.py,sha256=Z7Di4Tz7OXMZNq8clVZInKlY0QzHu5xoo4KN5soGw_E,13990
264
264
  mlrun/feature_store/__init__.py,sha256=n1F5m1svFW2chbE2dJdWzZJJiYS4E-y8PQsG9Q-F0lU,1584
265
265
  mlrun/feature_store/api.py,sha256=0-YFccl_p3c7jPizxJ2P1lcdtSkbhJhIIUHP8TRQay8,45276
266
266
  mlrun/feature_store/common.py,sha256=sl2pmkuv5w4KtTMjt0ky34Qps0iuoXNWbyYGuBkCxjc,12809
267
- mlrun/feature_store/feature_set.py,sha256=Kqtpasmdn6aypXZBXTrYGQDRLh7NUDya-JZOjkaNL6U,47422
267
+ mlrun/feature_store/feature_set.py,sha256=oRZkMT4oHSb0Z3ViaHprPNXEBk8CrEYwOLVNO8FVQLo,47493
268
268
  mlrun/feature_store/feature_vector.py,sha256=3v0MFS4LvcFQ7cJA6-vPoa1tJ-qMIejnDuJhHGY7J5k,35012
269
269
  mlrun/feature_store/ingestion.py,sha256=GZkrke5_JJfA_PGOFc6ekbHKujHgMgqr6t4vop5n_bg,11210
270
270
  mlrun/feature_store/steps.py,sha256=jleXgtUbR_BDk0Q060vHYwfBwX01VoU3Y1s5S6QF8mo,29028
271
271
  mlrun/feature_store/retrieval/__init__.py,sha256=bwA4copPpLQi8fyoUAYtOyrlw0-6f3-Knct8GbJSvRg,1282
272
272
  mlrun/feature_store/retrieval/base.py,sha256=gzY7sesiy2sMQa6VtG2nSpscEIjcrsLm5QgS8LxM2nw,30732
273
273
  mlrun/feature_store/retrieval/dask_merger.py,sha256=Lxoj16c8hp9i5RHf-8BmG9NmReeEev6AHu96oEN2Gp8,4895
274
- mlrun/feature_store/retrieval/job.py,sha256=Amprb-iBaNUsnF2cf03JeALrGKCZsfZBDqSaeatnB9k,8007
274
+ mlrun/feature_store/retrieval/job.py,sha256=CapLTnlN-5hzFVnC2wVXX1ydhXs_szNPKrAoOLK3cZc,8010
275
275
  mlrun/feature_store/retrieval/local_merger.py,sha256=M0R2FWc-kuLVvyAYbawrxAJvqjshtaRK2gQqF6DjgxM,4218
276
276
  mlrun/feature_store/retrieval/spark_merger.py,sha256=6A1YJF2W3zbMqnQ1WrBVzRpNExW9vX54ybREO2B9aXU,9819
277
277
  mlrun/feature_store/retrieval/storey_merger.py,sha256=5YM0UPrLjGOobulHkowRO-1LuvFD2cm_0GxcpnTdu0I,6314
@@ -368,7 +368,7 @@ mlrun/launcher/remote.py,sha256=neqIWNi64uR694DIFg6BdJk6Bbi0w_FIhfjChX1wsmk,6772
368
368
  mlrun/model_monitoring/__init__.py,sha256=XaYyvWsIXpjJQ2gCPj8tFvfSbRSEEqgDtNz4tCE5H4g,915
369
369
  mlrun/model_monitoring/api.py,sha256=MyS6dmFv2w9X-kGEPV4Z-Sn2Sihx85hmSe8Yd-NRQgI,34624
370
370
  mlrun/model_monitoring/application.py,sha256=OlpzGxBkTuBbqFIwN9AwiibqDP5YZaBHv6a7bWahm5c,12209
371
- mlrun/model_monitoring/batch.py,sha256=tnhTUkY9nDedkK7NZ5U53jL0P9i83_7QZlwEh1U0AhM,42337
371
+ mlrun/model_monitoring/batch.py,sha256=kcSXUFaUp4KEiX_jihXvqjJW-IZmV56obEYpVrMwBFc,42654
372
372
  mlrun/model_monitoring/batch_application.py,sha256=kFGZUss7CBkpcei9NlHFmKoU1Wu5l7_pdq8GuOhK0bk,21938
373
373
  mlrun/model_monitoring/batch_application_handler.py,sha256=6I3XmganxCfI-IUFEvFpdsUFiw3OiIMq58BS-XARIMs,1046
374
374
  mlrun/model_monitoring/evidently_application.py,sha256=ToQ9BfXZJqhVSxsVyWVEpYjKYaaTAT9wB83Tj7KVJdA,3401
@@ -409,8 +409,8 @@ mlrun/platforms/iguazio.py,sha256=LU1d33ll5EKIyp2zitCffZIbq-3fRwNSNO9MK2cIsHc,21
409
409
  mlrun/platforms/other.py,sha256=z4pWqxXkVVuMLk-MbNb0Y_ZR5pmIsUm0R8vHnqpEnew,11852
410
410
  mlrun/projects/__init__.py,sha256=Lv5rfxyXJrw6WGOWJKhBz66M6t3_zsNMCfUD6waPwx4,1153
411
411
  mlrun/projects/operations.py,sha256=AJsin0LrJHTisAPi-9t2ciFNZ83QdMRESIG31Mh_0x4,17948
412
- mlrun/projects/pipelines.py,sha256=PJ9qgQzD3CsJojMVA7rtMTBRIHhcygBV9fLeYUjNKTI,36545
413
- mlrun/projects/project.py,sha256=7OWnIn5GWY6GsF2CrQ6SQG_IpyKccw4xwJPb1r7OwGs,138028
412
+ mlrun/projects/pipelines.py,sha256=1ld4bzpUsqSmElwMBvEPdFJlDFenbGRhOok0BB4h1ug,36544
413
+ mlrun/projects/project.py,sha256=P11VYOYntNZgUE6jxwULoT5N_VhJ3O-vcP8_BrcF0LY,138181
414
414
  mlrun/runtimes/__init__.py,sha256=OuwnzCoaoXnqAv_RhoYRF6mRPfZ2pkslenxASpXhHQM,6707
415
415
  mlrun/runtimes/base.py,sha256=qMOhtgnym5SlX9xXIGnC-KjwGng8a4yRI7KH1mqVC9U,38261
416
416
  mlrun/runtimes/constants.py,sha256=TnkD0nQ7pcFq1aJvbweoM4BgbkhaA6fHhg9rnAkxDBE,6689
@@ -470,11 +470,11 @@ mlrun/utils/notifications/notification/ipython.py,sha256=qrBmtECiRG6sZpCIVMg7RZc
470
470
  mlrun/utils/notifications/notification/slack.py,sha256=5JysqIpUYUZKXPSeeZtbl7qb2L9dj7p2NvnEBcEsZkA,3898
471
471
  mlrun/utils/notifications/notification/webhook.py,sha256=QHezCuN5uXkLcroAGxGrhGHaxAdUvkDLIsp27_Yrfd4,2390
472
472
  mlrun/utils/version/__init__.py,sha256=7kkrB7hEZ3cLXoWj1kPoDwo4MaswsI2JVOBpbKgPAgc,614
473
- mlrun/utils/version/version.json,sha256=jT2PVpQTitajCVEVdwH44HqEMoYdKzZFrwI4bekF9hU,89
473
+ mlrun/utils/version/version.json,sha256=DVu8iNZNdV07ZdarkvN82a5XXbX_rb2pa6VDs5Lru-U,89
474
474
  mlrun/utils/version/version.py,sha256=HMwseV8xjTQ__6T6yUWojx_z6yUj7Io7O4NcCCH_sz8,1970
475
- mlrun-1.5.0rc16.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
476
- mlrun-1.5.0rc16.dist-info/METADATA,sha256=3Yg1j-Ur4F-nFSEuZ3wzjHm86iAwJwcme7ekaB6jQT0,17826
477
- mlrun-1.5.0rc16.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
478
- mlrun-1.5.0rc16.dist-info/entry_points.txt,sha256=ZbXmb36B9JmK7EaleP8MIAbZSOQXQV0iwKR6si0HUWk,47
479
- mlrun-1.5.0rc16.dist-info/top_level.txt,sha256=NObLzw3maSF9wVrgSeYBv-fgnHkAJ1kEkh12DLdd5KM,6
480
- mlrun-1.5.0rc16.dist-info/RECORD,,
475
+ mlrun-1.5.0rc17.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
476
+ mlrun-1.5.0rc17.dist-info/METADATA,sha256=KKrbNsNaRqjfgMhKOqgvGzCElfKZPcK6VCwfI8U5Tfs,17826
477
+ mlrun-1.5.0rc17.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
478
+ mlrun-1.5.0rc17.dist-info/entry_points.txt,sha256=ZbXmb36B9JmK7EaleP8MIAbZSOQXQV0iwKR6si0HUWk,47
479
+ mlrun-1.5.0rc17.dist-info/top_level.txt,sha256=NObLzw3maSF9wVrgSeYBv-fgnHkAJ1kEkh12DLdd5KM,6
480
+ mlrun-1.5.0rc17.dist-info/RECORD,,