From 30f77b0bda7d13c6c306a4a1601c191c2534f80b Mon Sep 17 00:00:00 2001 From: Paul Bugni Date: Mon, 6 Jan 2025 15:40:07 -0800 Subject: [PATCH] seeing a large number of timeouts from production, when waiting to acquire the OrgTree-LOCK. increase default 10 second limit. --- portal/models/organization.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/portal/models/organization.py b/portal/models/organization.py index f02e86227..4d5de8d8a 100644 --- a/portal/models/organization.py +++ b/portal/models/organization.py @@ -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: