mlrun 1.6.2rc2__py3-none-any.whl → 1.6.2rc5__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.

@@ -63,9 +63,12 @@ def _init_engine(dsn=None):
63
63
  max_overflow = config.httpdb.db.connections_pool_max_overflow
64
64
  if max_overflow is None:
65
65
  max_overflow = config.httpdb.max_workers
66
+
66
67
  kwargs = {
67
68
  "pool_size": pool_size,
68
69
  "max_overflow": max_overflow,
70
+ "pool_pre_ping": config.httpdb.db.connections_pool_pre_ping,
71
+ "pool_recycle": config.httpdb.db.connections_pool_recycle,
69
72
  }
70
73
  engine = create_engine(dsn, **kwargs)
71
74
  _engines[dsn] = engine
mlrun/config.py CHANGED
@@ -312,7 +312,11 @@ default_config = {
312
312
  # default is 16MB, max 1G, for more info https://dev.mysql.com/doc/refman/8.0/en/packet-too-large.html
313
313
  "max_allowed_packet": 64000000, # 64MB
314
314
  },
315
- # None will set this to be equal to the httpdb.max_workers
315
+ # tests connections for liveness upon each checkout
316
+ "connections_pool_pre_ping": True,
317
+ # this setting causes the pool to recycle connections after the given number of seconds has passed
318
+ "connections_pool_recycle": 60 * 60,
319
+ # None defaults to httpdb.max_workers
316
320
  "connections_pool_size": None,
317
321
  "connections_pool_max_overflow": None,
318
322
  # below is a db-specific configuration
@@ -440,7 +444,7 @@ default_config = {
440
444
  # pip install <requirement_specifier>, e.g. mlrun==0.5.4, mlrun~=0.5,
441
445
  # git+https://github.com/mlrun/mlrun@development. by default uses the version
442
446
  "mlrun_version_specifier": "",
443
- "kaniko_image": "gcr.io/kaniko-project/executor:v1.8.0", # kaniko builder image
447
+ "kaniko_image": "gcr.io/kaniko-project/executor:v1.21.1", # kaniko builder image
444
448
  "kaniko_init_container_image": "alpine:3.18",
445
449
  # image for kaniko init container when docker registry is ECR
446
450
  "kaniko_aws_cli_image": "amazon/aws-cli:2.7.10",
mlrun/datastore/base.py CHANGED
@@ -27,6 +27,7 @@ import requests
27
27
  import urllib3
28
28
  from deprecated import deprecated
29
29
 
30
+ import mlrun.config
30
31
  import mlrun.errors
31
32
  from mlrun.errors import err_to_str
32
33
  from mlrun.utils import StorePrefix, is_ipython, logger
@@ -34,10 +35,6 @@ from mlrun.utils import StorePrefix, is_ipython, logger
34
35
  from .store_resources import is_store_uri, parse_store_uri
35
36
  from .utils import filter_df_start_end_time, select_columns_from_df
36
37
 
37
- verify_ssl = False
38
- if not verify_ssl:
39
- urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
40
-
41
38
 
42
39
  class FileStats:
43
40
  def __init__(self, size, modified, content_type=None):
@@ -643,17 +640,6 @@ def basic_auth_header(user, password):
643
640
  return {"Authorization": authstr}
644
641
 
645
642
 
646
- def http_get(url, headers=None, auth=None):
647
- try:
648
- response = requests.get(url, headers=headers, auth=auth, verify=verify_ssl)
649
- except OSError as exc:
650
- raise OSError(f"error: cannot connect to {url}: {err_to_str(exc)}")
651
-
652
- mlrun.errors.raise_for_status(response)
653
-
654
- return response.content
655
-
656
-
657
643
  class HttpStore(DataStore):
658
644
  def __init__(self, parent, schema, name, endpoint="", secrets: dict = None):
659
645
  super().__init__(parent, name, schema, endpoint, secrets)
@@ -681,7 +667,7 @@ class HttpStore(DataStore):
681
667
  raise ValueError("unimplemented")
682
668
 
683
669
  def get(self, key, size=None, offset=0):
684
- data = http_get(self.url + self._join(key), self._headers, self.auth)
670
+ data = self._http_get(self.url + self._join(key), self._headers, self.auth)
685
671
  if offset:
686
672
  data = data[offset:]
687
673
  if size:
@@ -701,6 +687,26 @@ class HttpStore(DataStore):
701
687
  f"schema as it is not secure and is not recommended."
702
688
  )
703
689
 
690
+ def _http_get(
691
+ self,
692
+ url,
693
+ headers=None,
694
+ auth=None,
695
+ ):
696
+ # import here to prevent import cycle
697
+ from mlrun.config import config as mlconf
698
+
699
+ verify_ssl = mlconf.httpdb.http.verify
700
+ try:
701
+ if not verify_ssl:
702
+ urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
703
+ response = requests.get(url, headers=headers, auth=auth, verify=verify_ssl)
704
+ except OSError as exc:
705
+ raise OSError(f"error: cannot connect to {url}: {err_to_str(exc)}")
706
+
707
+ mlrun.errors.raise_for_status(response)
708
+ return response.content
709
+
704
710
 
705
711
  # This wrapper class is designed to extract the 'ds' schema and profile name from URL-formatted paths.
706
712
  # Within fsspec, the AbstractFileSystem::_strip_protocol() internal method is used to handle complete URL paths.
@@ -1,4 +1,4 @@
1
1
  {
2
- "git_commit": "0360dc1edec309cd38adef45742f652a5b03bd21",
3
- "version": "1.6.2-rc2"
2
+ "git_commit": "467e492c609b314126e880f26a0c116253d4a48c",
3
+ "version": "1.6.2-rc5"
4
4
  }
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mlrun
3
- Version: 1.6.2rc2
3
+ Version: 1.6.2rc5
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=o9dHUfVFADfsi6GnOPLr2OkfkHdPvOnA7rkoECen0-I,7248
2
2
  mlrun/__main__.py,sha256=zd-o0SkFH69HhIWKhqXnNURsrtpIcOJYYq50JfAxW7k,49234
3
- mlrun/config.py,sha256=T2NPHU660BTDHGnQEZZiLoNFjGSi5jThDpRT-M41mSs,62448
3
+ mlrun/config.py,sha256=h-ibiSUHu3RoJlYR84uzBQ4XaBP1gqbh5V9wLfztnkY,62699
4
4
  mlrun/errors.py,sha256=YdUtkN3qJ6yrseNygmKxmSWOfQ_RdKBhRxwwyMlTQCM,7106
5
5
  mlrun/execution.py,sha256=tgp6PcujZvGhDDVzPNs32YH_JNzaxfSd25yeuLwmjzg,40880
6
6
  mlrun/features.py,sha256=UQQ2uh5Xh9XsMGiYBqh3bKgDhOHANjv1gQgWyId9qQE,15624
@@ -24,7 +24,7 @@ mlrun/common/helpers.py,sha256=FqlMfRiZeGS6HZCOHaAJae2wDL1aRoijFBS5aZoPiIM,1108
24
24
  mlrun/common/secrets.py,sha256=vc8WV82EZsCB5ENjUkObFOzZP59aZ1w8F82PTnqwBnc,5181
25
25
  mlrun/common/types.py,sha256=V_jCEFCJZcycFVsPzEToCRQja5bqW0zRAAVaGN_QYxQ,790
26
26
  mlrun/common/db/__init__.py,sha256=xY3wHC4TEJgez7qtnn1pQvHosi8-5UJOCtyGBS7FcGE,571
27
- mlrun/common/db/sql_session.py,sha256=iWR8DWyziN2DSDiBgc5Wj3O7iVWDwfd0nJklAKwjoRM,2542
27
+ mlrun/common/db/sql_session.py,sha256=yS5KnE3FbOr3samz9tegSga4nd0JSv6azN0RIN9DGjk,2687
28
28
  mlrun/common/model_monitoring/__init__.py,sha256=x0EMEvxVjHsm858J1t6IEA9dtKTdFpJ9sKhss10ld8A,721
29
29
  mlrun/common/model_monitoring/helpers.py,sha256=War8806vyMwdrQs2JkmPQ1DTPPUZ0DJ1B3jABiyRUe8,4249
30
30
  mlrun/common/schemas/__init__.py,sha256=JZZB7i513MJZUYQgEJ5KxMlTyEfvJJvWKyHB25meS5E,4718
@@ -66,7 +66,7 @@ mlrun/data_types/spark.py,sha256=qKQ2TIAPQWDgmIOmpyV5_uuyUX3AnXWSq6GPpVjVIek,945
66
66
  mlrun/data_types/to_pandas.py,sha256=uq7y1svEzaDaPg92YP3p3k3BDI48XWZ2bDdH6aJSvso,9991
67
67
  mlrun/datastore/__init__.py,sha256=bsRzu39UOocQAAl_nOKCbhxrZhWUEXrAc8WV3zs0VyI,4118
68
68
  mlrun/datastore/azure_blob.py,sha256=pnl7XITAxz7MMp7owgKWIM0nTMUlMCMvlqZW2fpKkus,8734
69
- mlrun/datastore/base.py,sha256=KN120uIJIkGdeZvG1gVZzbXH-BAgup3wrxpY4OQVz4A,24750
69
+ mlrun/datastore/base.py,sha256=ldisbMJ-Cy6EbayrXwcakRjx1ETpA4TIYlLTFx59arI,24996
70
70
  mlrun/datastore/datastore.py,sha256=xnK-zKrDwTkiZQgzLpcz8d629avpjYtU9UN3WZpdjww,8810
71
71
  mlrun/datastore/datastore_profile.py,sha256=vBpkAcnGiYUO09ihg_jPgPdpo2GVBrOOSHYWWttqBag,14899
72
72
  mlrun/datastore/dbfs_store.py,sha256=5IkxnFQXkW0fdx-ca5jjQnUdTsTfNdJzMvV31ZpDNrM,6634
@@ -304,11 +304,11 @@ mlrun/utils/notifications/notification/ipython.py,sha256=qrBmtECiRG6sZpCIVMg7RZc
304
304
  mlrun/utils/notifications/notification/slack.py,sha256=5JysqIpUYUZKXPSeeZtbl7qb2L9dj7p2NvnEBcEsZkA,3898
305
305
  mlrun/utils/notifications/notification/webhook.py,sha256=QHezCuN5uXkLcroAGxGrhGHaxAdUvkDLIsp27_Yrfd4,2390
306
306
  mlrun/utils/version/__init__.py,sha256=7kkrB7hEZ3cLXoWj1kPoDwo4MaswsI2JVOBpbKgPAgc,614
307
- mlrun/utils/version/version.json,sha256=NkzLXgmmnQvEHqkZOxnIcrSRxByBONRupU86OsnSR4U,88
307
+ mlrun/utils/version/version.json,sha256=YIkVDLi1JX_TONuWPjSwtFW540w1375CUcgwIAjAQg8,88
308
308
  mlrun/utils/version/version.py,sha256=HMwseV8xjTQ__6T6yUWojx_z6yUj7Io7O4NcCCH_sz8,1970
309
- mlrun-1.6.2rc2.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
310
- mlrun-1.6.2rc2.dist-info/METADATA,sha256=0qc_h4o_2HZIPaJOhuScdd57D0GPvwwqlO844lj8xOI,18291
311
- mlrun-1.6.2rc2.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
312
- mlrun-1.6.2rc2.dist-info/entry_points.txt,sha256=1Owd16eAclD5pfRCoJpYC2ZJSyGNTtUr0nCELMioMmU,46
313
- mlrun-1.6.2rc2.dist-info/top_level.txt,sha256=NObLzw3maSF9wVrgSeYBv-fgnHkAJ1kEkh12DLdd5KM,6
314
- mlrun-1.6.2rc2.dist-info/RECORD,,
309
+ mlrun-1.6.2rc5.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
310
+ mlrun-1.6.2rc5.dist-info/METADATA,sha256=HWiySCk5hexzTIkyKNMeoBE9OZMp00kj0f9BlmCO7IM,18291
311
+ mlrun-1.6.2rc5.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
312
+ mlrun-1.6.2rc5.dist-info/entry_points.txt,sha256=1Owd16eAclD5pfRCoJpYC2ZJSyGNTtUr0nCELMioMmU,46
313
+ mlrun-1.6.2rc5.dist-info/top_level.txt,sha256=NObLzw3maSF9wVrgSeYBv-fgnHkAJ1kEkh12DLdd5KM,6
314
+ mlrun-1.6.2rc5.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.42.0)
2
+ Generator: bdist_wheel (0.43.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5