Skip to content

Commit

Permalink
seeing a large number of timeouts from production, when waiting to ac…
Browse files Browse the repository at this point in the history
…quire the OrgTree-LOCK. increase default 10 second limit.
  • Loading branch information
pbugni committed Jan 6, 2025
1 parent fc24582 commit 30f77b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion portal/models/organization.py
Original file line number Diff line number Diff line change
Expand Up @@ -838,7 +838,7 @@ class OrgTree(object):
def __init__(self):
# Maintain a singleton root object and lookup_table
try:
with TimeoutLock(key=ORG_TREE_LOCK_KEY, expires=300):
with TimeoutLock(key=ORG_TREE_LOCK_KEY, expires=300, timeout=300):
if not OrgTree.root:
self.__reset_cache()
except LockTimeout:
Expand Down

0 comments on commit 30f77b0

Please sign in to comment.