ob-metaflow-extensions 1.1.169__py2.py3-none-any.whl → 1.1.170__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.

@@ -90,6 +90,7 @@ class DockerEnvironmentException(MetaflowException):
90
90
  class DockerEnvironment(MetaflowEnvironment):
91
91
  TYPE = "fast-bakery"
92
92
  _filecache = None
93
+ _force_rebuild = False
93
94
 
94
95
  def __init__(self, flow):
95
96
  self.skipped_steps = set()
@@ -178,12 +179,20 @@ class DockerEnvironment(MetaflowEnvironment):
178
179
 
179
180
  if self.skipped_steps:
180
181
  self.delegate = CondaEnvironment(self.flow)
182
+ self.delegate._force_rebuild = self._force_rebuild
181
183
  self.delegate.set_local_root(self.local_root)
182
184
  self.delegate.validate_environment(echo, self.datastore_type)
183
185
  self.delegate.init_environment(echo, self.skipped_steps)
184
186
 
185
187
  def _bake(self, steps) -> Dict[str, FastBakeryApiResponse]:
186
188
  metafile_path = get_fastbakery_metafile_path(self.local_root, self.flow.name)
189
+ if self._force_rebuild:
190
+ # clear the metafile if force rebuilding, effectively skipping the cache.
191
+ try:
192
+ os.remove(metafile_path)
193
+ except Exception:
194
+ pass
195
+
187
196
  logger_lock = threading.Lock()
188
197
 
189
198
  @cache_request(metafile_path)
@@ -201,7 +210,8 @@ class DockerEnvironment(MetaflowEnvironment):
201
210
  bakery.pypi_packages(pypi_packages)
202
211
  bakery.conda_packages(conda_packages)
203
212
  bakery.base_image(base_image)
204
- # bakery.ignore_cache()
213
+ if self._force_rebuild:
214
+ bakery.ignore_cache()
205
215
 
206
216
  with logger_lock:
207
217
  self.logger(f"🍳 Baking [{ref}] ...")
@@ -1,13 +1,13 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ob-metaflow-extensions
3
- Version: 1.1.169
3
+ Version: 1.1.170
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.17.1)
10
+ Requires-Dist: ob-metaflow (==2.15.18.1)
11
11
 
12
12
  # Outerbounds platform package
13
13
 
@@ -20,7 +20,7 @@ metaflow_extensions/outerbounds/plugins/checkpoint_datastores/__init__.py,sha256
20
20
  metaflow_extensions/outerbounds/plugins/checkpoint_datastores/coreweave.py,sha256=_WzoOROFjoFa8TzsMNFp-r_1Zz7NUp-5ljn_kKlczXA,4534
21
21
  metaflow_extensions/outerbounds/plugins/checkpoint_datastores/nebius.py,sha256=zgqDLFewCeF5jqh-hUNKmC_OAjld09ln0bb8Lkeqapc,4659
22
22
  metaflow_extensions/outerbounds/plugins/fast_bakery/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
23
- metaflow_extensions/outerbounds/plugins/fast_bakery/docker_environment.py,sha256=Tl520HdBteg-aDOM7mnnJJpdDCZc49BmFFmLUc_vTi8,15018
23
+ metaflow_extensions/outerbounds/plugins/fast_bakery/docker_environment.py,sha256=nmp_INGIAiWyrhyJ71BH38eRLu1xCIEEKejmXNQ6RlA,15378
24
24
  metaflow_extensions/outerbounds/plugins/fast_bakery/fast_bakery.py,sha256=PE81ZB54OAMXkMGSB7JqgvgMg7N9kvoVclrWL-6jc2U,5626
25
25
  metaflow_extensions/outerbounds/plugins/fast_bakery/fast_bakery_cli.py,sha256=kqFyu2bJSnc9_9aYfBpz5xK6L6luWFZK_NMuh8f1eVk,1494
26
26
  metaflow_extensions/outerbounds/plugins/fast_bakery/fast_bakery_decorator.py,sha256=MXSIp05-jvt8Q2uGaLKjtuM_ToLeRLxhtMbfHc9Kcko,1515
@@ -84,7 +84,7 @@ metaflow_extensions/outerbounds/toplevel/plugins/ollama/__init__.py,sha256=GRSz2
84
84
  metaflow_extensions/outerbounds/toplevel/plugins/snowflake/__init__.py,sha256=LptpH-ziXHrednMYUjIaosS1SXD3sOtF_9_eRqd8SJw,50
85
85
  metaflow_extensions/outerbounds/toplevel/plugins/torchtune/__init__.py,sha256=uTVkdSk3xZ7hEKYfdlyVteWj5KeDwaM1hU9WT-_YKfI,50
86
86
  metaflow_extensions/outerbounds/toplevel/plugins/vllm/__init__.py,sha256=ekcgD3KVydf-a0xMI60P4uy6ePkSEoFHiGnDq1JM940,45
87
- ob_metaflow_extensions-1.1.169.dist-info/METADATA,sha256=x6w5D_39YQbFxSSjlZMRqvkO0M6eW4jzZzq-_5w3d4g,521
88
- ob_metaflow_extensions-1.1.169.dist-info/WHEEL,sha256=bb2Ot9scclHKMOLDEHY6B2sicWOgugjFKaJsT7vwMQo,110
89
- ob_metaflow_extensions-1.1.169.dist-info/top_level.txt,sha256=NwG0ukwjygtanDETyp_BUdtYtqIA_lOjzFFh1TsnxvI,20
90
- ob_metaflow_extensions-1.1.169.dist-info/RECORD,,
87
+ ob_metaflow_extensions-1.1.170.dist-info/METADATA,sha256=1wG03fowsX-nQaJbPyG2D9LdZKeNDZp08DMRS7A4re4,521
88
+ ob_metaflow_extensions-1.1.170.dist-info/WHEEL,sha256=bb2Ot9scclHKMOLDEHY6B2sicWOgugjFKaJsT7vwMQo,110
89
+ ob_metaflow_extensions-1.1.170.dist-info/top_level.txt,sha256=NwG0ukwjygtanDETyp_BUdtYtqIA_lOjzFFh1TsnxvI,20
90
+ ob_metaflow_extensions-1.1.170.dist-info/RECORD,,