Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

release: 0.10.0 #136

Merged
merged 15 commits into from
Feb 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading