Skip to content

Commit

Permalink
Merge pull request #136 from IDEA-Research/dev
Browse files Browse the repository at this point in the history
release: 0.10.0
  • Loading branch information
imhuwq authored Feb 29, 2024
2 parents 0aedf1d + aba45ae commit 802da5d
Show file tree
Hide file tree
Showing 56 changed files with 1,291 additions and 1,334 deletions.
1 change: 1 addition & 0 deletions deepdataspace/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ class AnnotationType:
Segmentation = "Segmentation" #: The annotation segments the object.
Matting = "Matting" #: The annotation matting the object.
KeyPoints = "KeyPoints" #: The annotation marks the keypoints of the object.
Mask = "Mask" #: The annotation contains RLE format of mask


class TaskStatus:
Expand Down
11 changes: 1 addition & 10 deletions deepdataspace/globals.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,8 @@
_mongo_user = urllib.parse.quote_plus(MONGODB_USER)
_mongo_pass = urllib.parse.quote_plus(MONGODB_PASS)
_mongo_url = f"mongodb://{_mongo_user}:{_mongo_pass}@{MONGODB_HOST}:{MONGODB_PORT}/{MONGODB_DBNAME}"
_mongo_client = MongoClient(_mongo_url, authMechanism="SCRAM-SHA-256")
_mongo_client = MongoClient(_mongo_url, authMechanism="SCRAM-SHA-256", maxPoolSize=None)
MongoDB = _mongo_client[MONGODB_DBNAME]

# init redis client
Redis = redis.Redis(host=REDIS_HOST, port=REDIS_PORT, db=REDIS_DBNAME, password=REDIS_PASS)

# init sentry client
# TODO: sentry is not necessary for dds tool, remove it as soon as possible
if SENTRY_DSN is not None:
sample_rate = 0.1 if ENV == RunningEnv.Prod else 1.0
sentry_sdk.init(dsn=SENTRY_DSN,
traces_sample_rate=sample_rate,
environment=ENV, )
sentry_sdk.set_tag("os.user", get_os_username())
Loading

0 comments on commit 802da5d

Please sign in to comment.