Browse Source

feat(store): Add an option to control which platforms should use highcpu queue at runtime (#54071)

This PR registers an option to control which platforms should use
highcpu queue at runtime
Hubert Chan 1 year ago
parent
commit
aef28f746e
2 changed files with 9 additions and 0 deletions
  1. 6 0
      src/sentry/killswitches.py
  2. 3 0
      src/sentry/options/defaults.py

+ 6 - 0
src/sentry/killswitches.py

@@ -130,6 +130,12 @@ ALL_KILLSWITCH_OPTIONS = {
             "platform": "The event platform as defined in the event payload's platform field, or 'none'",
         },
     ),
+    "store.save-event-highcpu-platforms": KillswitchInfo(
+        description="Send highcpu platform events to save_event highcpu queue",
+        fields={
+            "platform": "The event platform as defined in the event payload's platform field, or 'none'",
+        },
+    ),
     "store.symbolicate-event-lpq-never": KillswitchInfo(
         description="""
         Never allow a project's symbolication events to be demoted to symbolicator's low priority queue.

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

@@ -721,6 +721,9 @@ register(
     default=[],
     flags=FLAG_AUTOMATOR_MODIFIABLE,
 )
+register(
+    "store.save-event-highcpu-platforms", type=Sequence, default=[], flags=FLAG_AUTOMATOR_MODIFIABLE
+)
 register(
     "store.symbolicate-event-lpq-never", type=Sequence, default=[], flags=FLAG_AUTOMATOR_MODIFIABLE
 )