Skip to content

Commit b9b847d

Browse files
feat(crons): Add system_incidents.use_decisions option (#80828)
Will be used to determine if the incident occurrence consumer will delay sending incident occurrences by using clock tick decisions. This will be a killswitch we can use in the scenario where we falsely start delaying incident occurrences
1 parent 0edd209 commit b9b847d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/sentry/options/defaults.py

+9
Original file line numberDiff line numberDiff line change
@@ -2021,6 +2021,15 @@
20212021
flags=FLAG_BOOL | FLAG_AUTOMATOR_MODIFIABLE,
20222022
)
20232023

2024+
# Enables the the crons incident occurrence consumer to consider the clock-tick
2025+
# decision made based on volume metrics to determine if a incident occurrence
2026+
# should be processed, delayed, or dropped entirely.
2027+
register(
2028+
"crons.system_incidents.use_decisions",
2029+
default=False,
2030+
flags=FLAG_BOOL | FLAG_AUTOMATOR_MODIFIABLE,
2031+
)
2032+
20242033
# The threshold that the tick metric must surpass for a tick to be determined
20252034
# as anomalous. This value should be negative, since we will only determine an
20262035
# incident based on a decrease in volume.

0 commit comments

Comments
 (0)