Browse Source

feat(crons): Add options to enable check_accept_monitor_checkin (#62524)

Used for https://github.com/getsentry/getsentry/pull/12461
Evan Purkhiser 1 year ago
parent
commit
a7ebd706fa
1 changed files with 17 additions and 0 deletions
  1. 17 0
      src/sentry/options/defaults.py

+ 17 - 0
src/sentry/options/defaults.py

@@ -1565,6 +1565,23 @@ register(
 # Killswitch for monitor check-ins
 register("crons.organization.disable-check-in", type=Sequence, default=[])
 
+# Globally enables the check_accept_monitor_checkin method to be run during
+# monitor check-ins. This is temporarily in support of billing in getsentry.
+register(
+    "crons.check-accept-monitor-checkin-enabled",
+    default=False,
+    type=Bool,
+    flags=FLAG_ALLOW_EMPTY | FLAG_AUTOMATOR_MODIFIABLE,
+)
+
+# A list of monitor slugs that should have the check_accept_monitor_checkin
+# method run, even when check-accept-monitor-checkin-enabled is False.
+register(
+    "crons.check-accept-monitor-checkin-slug-overrides",
+    type=Sequence,
+    default=[],
+)
+
 # Turns on and off the running for dynamic sampling collect_orgs.
 register("dynamic-sampling.tasks.collect_orgs", default=False, flags=FLAG_MODIFIABLE_BOOL)