Skip to content

Commit

Permalink
Feat: Add lockduration (#200)
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosmondra authored Dec 20, 2024
1 parent 643a230 commit 21c453e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions expertise/service/config/default.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ REDIS_PORT = 6379
REDIS_CONFIG_DB = 10
REDIS_EMBEDDINGS_DB = 11
ACTIVE_JOBS = 1
LOCK_DURATION = 10800000
DEFAULT_CONFIG = {
"dataset": {},
"model": "specter+mfr",
Expand Down
1 change: 1 addition & 0 deletions expertise/service/expertise.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ def __init__(self, config, logger):
},
'autorun': False,
'concurrency': config['ACTIVE_JOBS'],
'lockDuration': config['LOCK_DURATION'],
}
)
self.start_worker_in_thread()
Expand Down

0 comments on commit 21c453e

Please sign in to comment.