ob-metaflow-extensions 1.1.152__py2.py3-none-any.whl → 1.1.154__py2.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 ob-metaflow-extensions might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  import metaflow.metaflow_config_funcs
2
2
 
3
- from metaflow_extensions.outerbounds.remote_config import init_config
3
+ from metaflow_extensions.outerbounds.remote_config import init_config, reload_config
4
4
 
5
5
  # we want to overide OSS Metaflow's initialization behavior with our own to support remote configs
6
6
  # we're reassigning the METAFLOW_CONFIG variable because all downstream settings rely on it and
@@ -112,3 +112,22 @@ def _init_debug(*args, **kwargs):
112
112
  init_str = "ob_extension_init:"
113
113
  kwargs["file"] = sys.stderr
114
114
  print(init_str, *args, **kwargs)
115
+
116
+
117
+ def reload_config():
118
+ """
119
+ This function is used to reload the config. Currently its a best effort implementation
120
+ that will only reload auth token.
121
+ """
122
+ _init_debug("reloading config")
123
+ if CONFIG_READ_ONCE_KEY in os.environ:
124
+ del os.environ[CONFIG_READ_ONCE_KEY]
125
+ config = init_config()
126
+ import metaflow.metaflow_config
127
+
128
+ metaflow.metaflow_config.SERVICE_AUTH_KEY = config.get(AUTH_KEY)
129
+ metaflow.metaflow_config.SERVICE_HEADERS["x-api-key"] = config.get(AUTH_KEY)
130
+ if config:
131
+ _init_debug("reloaded config")
132
+ else:
133
+ _init_debug("no config to reload")
@@ -1,13 +1,13 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ob-metaflow-extensions
3
- Version: 1.1.152
3
+ Version: 1.1.154
4
4
  Summary: Outerbounds Platform Extensions for Metaflow
5
5
  Author: Outerbounds, Inc.
6
6
  License: Commercial
7
7
  Description-Content-Type: text/markdown
8
8
  Requires-Dist: boto3
9
9
  Requires-Dist: kubernetes
10
- Requires-Dist: ob-metaflow (==2.15.11.1)
10
+ Requires-Dist: ob-metaflow (==2.15.11.2)
11
11
 
12
12
  # Outerbounds platform package
13
13
 
@@ -1,5 +1,5 @@
1
- metaflow_extensions/outerbounds/__init__.py,sha256=TRGvIUMjkfneWtYUFSWoubu_Kf2ekAL4WLbV3IxOj9k,499
2
- metaflow_extensions/outerbounds/remote_config.py,sha256=Zpfpjgz68_ZgxlXezjzlsDLo4840rkWuZgwDB_5H57U,4059
1
+ metaflow_extensions/outerbounds/__init__.py,sha256=Gb8u06s9ClQsA_vzxmkCzuMnigPy7kKcDnLfb7eB-64,514
2
+ metaflow_extensions/outerbounds/remote_config.py,sha256=pEFJuKDYs98eoB_-ryPjVi9b_c4gpHMdBHE14ltoxIU,4672
3
3
  metaflow_extensions/outerbounds/config/__init__.py,sha256=JsQGRuGFz28fQWjUvxUgR8EKBLGRdLUIk_buPLJplJY,1225
4
4
  metaflow_extensions/outerbounds/plugins/__init__.py,sha256=eHcM_t2Mzlge7B9Dv3VGVM5x8qNZYdLyqBOAC6uRxec,13228
5
5
  metaflow_extensions/outerbounds/plugins/auth_server.py,sha256=_Q9_2EL0Xy77bCRphkwT1aSu8gQXRDOH-Z-RxTUO8N4,2202
@@ -68,7 +68,7 @@ metaflow_extensions/outerbounds/toplevel/plugins/gcp/__init__.py,sha256=BbZiaH3u
68
68
  metaflow_extensions/outerbounds/toplevel/plugins/kubernetes/__init__.py,sha256=5zG8gShSj8m7rgF4xgWBZFuY3GDP5n1T0ktjRpGJLHA,69
69
69
  metaflow_extensions/outerbounds/toplevel/plugins/ollama/__init__.py,sha256=GRSz2zwqkvlmFS6bcfYD_CX6CMko9DHQokMaH1iBshA,47
70
70
  metaflow_extensions/outerbounds/toplevel/plugins/snowflake/__init__.py,sha256=LptpH-ziXHrednMYUjIaosS1SXD3sOtF_9_eRqd8SJw,50
71
- ob_metaflow_extensions-1.1.152.dist-info/METADATA,sha256=gOiQAMbmuGwKu2qJJoWmaiorTfxt_9qxu0eVeiWJTRE,521
72
- ob_metaflow_extensions-1.1.152.dist-info/WHEEL,sha256=bb2Ot9scclHKMOLDEHY6B2sicWOgugjFKaJsT7vwMQo,110
73
- ob_metaflow_extensions-1.1.152.dist-info/top_level.txt,sha256=NwG0ukwjygtanDETyp_BUdtYtqIA_lOjzFFh1TsnxvI,20
74
- ob_metaflow_extensions-1.1.152.dist-info/RECORD,,
71
+ ob_metaflow_extensions-1.1.154.dist-info/METADATA,sha256=EEzzuRx6dYL7E74RUnGyd96Zor8SdgeYjjhoAALDBYY,521
72
+ ob_metaflow_extensions-1.1.154.dist-info/WHEEL,sha256=bb2Ot9scclHKMOLDEHY6B2sicWOgugjFKaJsT7vwMQo,110
73
+ ob_metaflow_extensions-1.1.154.dist-info/top_level.txt,sha256=NwG0ukwjygtanDETyp_BUdtYtqIA_lOjzFFh1TsnxvI,20
74
+ ob_metaflow_extensions-1.1.154.dist-info/RECORD,,