Skip to content

Commit 5f9db5f

Browse files
committed
Bump Version 0.5.14
1 parent c2a6897 commit 5f9db5f

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"
66
name = "superduper-framework"
77
description = "🔮 Bring AI to your favourite database 🔮"
88
readme = "README.md"
9-
version = '0.5.13'
9+
version = '0.5.14'
1010
license = {file = "LICENSE"}
1111
maintainers = [{name = "superduper.io, Inc.", email = "opensource@superduper.com"}]
1212
keywords = [

superduper/base/datalayer.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -629,6 +629,12 @@ def _remove_component_version(
629629
f'Component {type_id}:{identifier}:{version} has already been removed'
630630
)
631631
return
632+
except Exception as e:
633+
if 'not exist' in str(e):
634+
logging.warn(
635+
f'Component {type_id}:{identifier}:{version} has already been removed'
636+
)
637+
return
632638
if self.metadata.component_version_has_parents(type_id, identifier, version):
633639
parents = self.metadata.get_component_version_parents(r['uuid'])
634640
raise exceptions.ComponentInUseError(

superduper/rest/build.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import shutil
55
import sys
66
import tempfile
7+
import threading
78
import typing as t
89
import zipfile
910
from contextlib import contextmanager
@@ -30,6 +31,7 @@
3031

3132

3233
PENDING_COMPONENTS = set()
34+
lock = threading.Lock()
3335

3436

3537
class Tee:
@@ -200,7 +202,8 @@ def db_apply(
200202
cls_path = info['_builds'][info['_base'][1:]]['_path']
201203
cls = import_object(cls_path)
202204
type_id = cls.type_id
203-
PENDING_COMPONENTS.add((type_id, info['identifier']))
205+
with lock:
206+
PENDING_COMPONENTS.add((type_id, info['identifier']))
204207
if '_variables' in info:
205208
info['_variables']['output_prefix'] = CFG.output_prefix
206209
info['_variables']['databackend'] = db.databackend.backend_name
@@ -273,7 +276,8 @@ def db_show(
273276
def db_remove(
274277
type_id: str, identifier: str, db: 'Datalayer' = DatalayerDependency()
275278
):
276-
PENDING_COMPONENTS.discard((type_id, identifier))
279+
with lock:
280+
PENDING_COMPONENTS.discard((type_id, identifier))
277281
db.remove(type_id=type_id, identifier=identifier, recursive=True, force=True)
278282
return {'status': 'ok'}
279283

0 commit comments

Comments
 (0)