Skip to content

Commit 1d85965

Browse files
bumping to 300s to accommodate some of the rarer outliers
1 parent 63005e9 commit 1d85965

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

contentctl/objects/correlation_search.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,12 @@ class TimeoutConfig(int, Enum):
104104
# base amount to sleep for before beginning exponential backoff during testing
105105
BASE_SLEEP = 60
106106

107-
# max amount to wait before timing out during exponential backoff
108-
MAX_SLEEP = 270
107+
# NOTE: Some detections take longer to generate their risk/notables than other; testing has
108+
# shown 270s to likely be sufficient for all detections in 99% of runs; however we have
109+
# encountered a handful of transient failures in the last few months. Since our success rate
110+
# is at 100% now, we will round this to a flat 300s to accomodate these outliers.
111+
# Max amount to wait before timing out during exponential backoff
112+
MAX_SLEEP = 300
109113

110114

111115
# TODO (#226): evaluate sane defaults for timeframe for integration testing (e.g. 5y is good

0 commit comments

Comments
 (0)