Skip to content

Commit 802da5d

Browse files
authored
Merge pull request #136 from IDEA-Research/dev
release: 0.10.0
2 parents 0aedf1d + aba45ae commit 802da5d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+1291
-1334
lines changed

deepdataspace/constants.py

+1
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ class AnnotationType:
9393
Segmentation = "Segmentation" #: The annotation segments the object.
9494
Matting = "Matting" #: The annotation matting the object.
9595
KeyPoints = "KeyPoints" #: The annotation marks the keypoints of the object.
96+
Mask = "Mask" #: The annotation contains RLE format of mask
9697

9798

9899
class TaskStatus:

deepdataspace/globals.py

+1-10
Original file line numberDiff line numberDiff line change
@@ -41,17 +41,8 @@
4141
_mongo_user = urllib.parse.quote_plus(MONGODB_USER)
4242
_mongo_pass = urllib.parse.quote_plus(MONGODB_PASS)
4343
_mongo_url = f"mongodb://{_mongo_user}:{_mongo_pass}@{MONGODB_HOST}:{MONGODB_PORT}/{MONGODB_DBNAME}"
44-
_mongo_client = MongoClient(_mongo_url, authMechanism="SCRAM-SHA-256")
44+
_mongo_client = MongoClient(_mongo_url, authMechanism="SCRAM-SHA-256", maxPoolSize=None)
4545
MongoDB = _mongo_client[MONGODB_DBNAME]
4646

4747
# init redis client
4848
Redis = redis.Redis(host=REDIS_HOST, port=REDIS_PORT, db=REDIS_DBNAME, password=REDIS_PASS)
49-
50-
# init sentry client
51-
# TODO: sentry is not necessary for dds tool, remove it as soon as possible
52-
if SENTRY_DSN is not None:
53-
sample_rate = 0.1 if ENV == RunningEnv.Prod else 1.0
54-
sentry_sdk.init(dsn=SENTRY_DSN,
55-
traces_sample_rate=sample_rate,
56-
environment=ENV, )
57-
sentry_sdk.set_tag("os.user", get_os_username())

0 commit comments

Comments
 (0)