@@ -900,12 +900,24 @@ def SOCIAL_AUTH_DEFAULT_USERNAME() -> str:
900
900
901
901
902
902
CELERY_QUEUES_CONTROL = [
903
- Queue ("app_platform.control" , routing_key = "app_platform.control" , exchange = control_exchange ),
903
+ Queue (
904
+ "app_platform.control" ,
905
+ routing_key = "app_platform.control" ,
906
+ exchange = control_exchange ,
907
+ ),
904
908
Queue ("auth.control" , routing_key = "auth.control" , exchange = control_exchange ),
905
909
Queue ("cleanup.control" , routing_key = "cleanup.control" , exchange = control_exchange ),
906
910
Queue ("email.control" , routing_key = "email.control" , exchange = control_exchange ),
907
- Queue ("integrations.control" , routing_key = "integrations.control" , exchange = control_exchange ),
908
- Queue ("files.delete.control" , routing_key = "files.delete.control" , exchange = control_exchange ),
911
+ Queue (
912
+ "integrations.control" ,
913
+ routing_key = "integrations.control" ,
914
+ exchange = control_exchange ,
915
+ ),
916
+ Queue (
917
+ "files.delete.control" ,
918
+ routing_key = "files.delete.control" ,
919
+ exchange = control_exchange ,
920
+ ),
909
921
Queue (
910
922
"hybrid_cloud.control_repair" ,
911
923
routing_key = "hybrid_cloud.control_repair" ,
@@ -914,7 +926,11 @@ def SOCIAL_AUTH_DEFAULT_USERNAME() -> str:
914
926
Queue ("options.control" , routing_key = "options.control" , exchange = control_exchange ),
915
927
Queue ("outbox.control" , routing_key = "outbox.control" , exchange = control_exchange ),
916
928
Queue ("webhook.control" , routing_key = "webhook.control" , exchange = control_exchange ),
917
- Queue ("relocation.control" , routing_key = "relocation.control" , exchange = control_exchange ),
929
+ Queue (
930
+ "relocation.control" ,
931
+ routing_key = "relocation.control" ,
932
+ exchange = control_exchange ,
933
+ ),
918
934
Queue (
919
935
"release_registry.control" ,
920
936
routing_key = "release_registry.control" ,
@@ -943,7 +959,8 @@ def SOCIAL_AUTH_DEFAULT_USERNAME() -> str:
943
959
Queue ("default" , routing_key = "default" ),
944
960
Queue ("delayed_rules" , routing_key = "delayed_rules" ),
945
961
Queue (
946
- "delete_seer_grouping_records_by_hash" , routing_key = "delete_seer_grouping_records_by_hash"
962
+ "delete_seer_grouping_records_by_hash" ,
963
+ routing_key = "delete_seer_grouping_records_by_hash" ,
947
964
),
948
965
Queue ("digests.delivery" , routing_key = "digests.delivery" ),
949
966
Queue ("digests.scheduling" , routing_key = "digests.scheduling" ),
@@ -952,11 +969,16 @@ def SOCIAL_AUTH_DEFAULT_USERNAME() -> str:
952
969
Queue ("events.preprocess_event" , routing_key = "events.preprocess_event" ),
953
970
Queue ("events.process_event" , routing_key = "events.process_event" ),
954
971
Queue (
955
- "events.reprocessing.preprocess_event" , routing_key = "events.reprocessing.preprocess_event"
972
+ "events.reprocessing.preprocess_event" ,
973
+ routing_key = "events.reprocessing.preprocess_event" ,
956
974
),
957
- Queue ("events.reprocessing.process_event" , routing_key = "events.reprocessing.process_event" ),
958
975
Queue (
959
- "events.reprocessing.symbolicate_event" , routing_key = "events.reprocessing.symbolicate_event"
976
+ "events.reprocessing.process_event" ,
977
+ routing_key = "events.reprocessing.process_event" ,
978
+ ),
979
+ Queue (
980
+ "events.reprocessing.symbolicate_event" ,
981
+ routing_key = "events.reprocessing.symbolicate_event" ,
960
982
),
961
983
Queue ("events.save_event" , routing_key = "events.save_event" ),
962
984
Queue ("events.save_event_highcpu" , routing_key = "events.save_event_highcpu" ),
@@ -969,9 +991,13 @@ def SOCIAL_AUTH_DEFAULT_USERNAME() -> str:
969
991
Queue ("files.copy" , routing_key = "files.copy" ),
970
992
Queue ("files.delete" , routing_key = "files.delete" ),
971
993
Queue (
972
- "group_owners.process_suspect_commits" , routing_key = "group_owners.process_suspect_commits"
994
+ "group_owners.process_suspect_commits" ,
995
+ routing_key = "group_owners.process_suspect_commits" ,
996
+ ),
997
+ Queue (
998
+ "group_owners.process_commit_context" ,
999
+ routing_key = "group_owners.process_commit_context" ,
973
1000
),
974
- Queue ("group_owners.process_commit_context" , routing_key = "group_owners.process_commit_context" ),
975
1001
Queue ("integrations" , routing_key = "integrations" ),
976
1002
Queue (
977
1003
"releasemonitor" ,
@@ -1016,18 +1042,27 @@ def SOCIAL_AUTH_DEFAULT_USERNAME() -> str:
1016
1042
Queue ("auto_enable_codecov" , routing_key = "auto_enable_codecov" ),
1017
1043
Queue ("weekly_escalating_forecast" , routing_key = "weekly_escalating_forecast" ),
1018
1044
Queue ("relocation" , routing_key = "relocation" ),
1019
- Queue ("performance.statistical_detector" , routing_key = "performance.statistical_detector" ),
1045
+ Queue (
1046
+ "performance.statistical_detector" ,
1047
+ routing_key = "performance.statistical_detector" ,
1048
+ ),
1020
1049
Queue ("profiling.statistical_detector" , routing_key = "profiling.statistical_detector" ),
1021
1050
CELERY_ISSUE_STATES_QUEUE ,
1022
1051
Queue ("nudge.invite_missing_org_members" , routing_key = "invite_missing_org_members" ),
1023
1052
Queue ("auto_resolve_issues" , routing_key = "auto_resolve_issues" ),
1024
1053
Queue ("on_demand_metrics" , routing_key = "on_demand_metrics" ),
1025
1054
Queue ("check_new_issue_threshold_met" , routing_key = "check_new_issue_threshold_met" ),
1026
- Queue ("integrations_slack_activity_notify" , routing_key = "integrations_slack_activity_notify" ),
1055
+ Queue (
1056
+ "integrations_slack_activity_notify" ,
1057
+ routing_key = "integrations_slack_activity_notify" ,
1058
+ ),
1027
1059
Queue ("demo_mode" , routing_key = "demo_mode" ),
1028
1060
Queue ("release_registry" , routing_key = "release_registry" ),
1029
1061
Queue ("seer.seer_automation" , routing_key = "seer.seer_automation" ),
1030
- Queue ("workflow_engine.process_workflows" , routing_key = "workflow_engine.process_workflows" ),
1062
+ Queue (
1063
+ "workflow_engine.process_workflows" ,
1064
+ routing_key = "workflow_engine.process_workflows" ,
1065
+ ),
1031
1066
Queue ("workflow_engine.trigger_action" , routing_key = "workflow_engine.trigger_action" ),
1032
1067
]
1033
1068
@@ -1400,7 +1435,10 @@ def SOCIAL_AUTH_DEFAULT_USERNAME() -> str:
1400
1435
}
1401
1436
1402
1437
BGTASKS : dict [str , BgTaskConfig ] = {
1403
- "sentry.bgtasks.clean_dsymcache:clean_dsymcache" : {"interval" : 5 * 60 , "roles" : ["worker" ]},
1438
+ "sentry.bgtasks.clean_dsymcache:clean_dsymcache" : {
1439
+ "interval" : 5 * 60 ,
1440
+ "roles" : ["worker" ],
1441
+ },
1404
1442
}
1405
1443
1406
1444
#######################
@@ -1757,7 +1795,10 @@ def SOCIAL_AUTH_DEFAULT_USERNAME() -> str:
1757
1795
elif SILO_MODE == "REGION" :
1758
1796
TASKWORKER_SCHEDULES = TASKWORKER_REGION_SCHEDULES
1759
1797
else :
1760
- TASKWORKER_SCHEDULES = {** TASKWORKER_CONTROL_SCHEDULES , ** TASKWORKER_REGION_SCHEDULES }
1798
+ TASKWORKER_SCHEDULES = {
1799
+ ** TASKWORKER_CONTROL_SCHEDULES ,
1800
+ ** TASKWORKER_REGION_SCHEDULES ,
1801
+ }
1761
1802
1762
1803
TASKWORKER_HIGH_THROUGHPUT_NAMESPACES = {
1763
1804
"ingest.profiling" ,
@@ -1783,7 +1824,10 @@ def SOCIAL_AUTH_DEFAULT_USERNAME() -> str:
1783
1824
# This `internal` logger is separate from the `Logging` integration in the SDK. Since
1784
1825
# we have this to record events, in `sdk.py` we set the integration's `event_level` to
1785
1826
# None, so that it records breadcrumbs for all log calls but doesn't send any events.
1786
- "internal" : {"level" : "ERROR" , "class" : "sentry_sdk.integrations.logging.EventHandler" },
1827
+ "internal" : {
1828
+ "level" : "ERROR" ,
1829
+ "class" : "sentry_sdk.integrations.logging.EventHandler" ,
1830
+ },
1787
1831
"metrics" : {
1788
1832
"level" : "WARNING" ,
1789
1833
"filters" : ["important_django_request" ],
@@ -1816,7 +1860,11 @@ def SOCIAL_AUTH_DEFAULT_USERNAME() -> str:
1816
1860
# This only needs to go to Sentry for now.
1817
1861
"sentry.similarity" : {"handlers" : ["internal" ], "propagate" : False },
1818
1862
"sentry.errors" : {"handlers" : ["console" ], "propagate" : False },
1819
- "sentry_sdk.errors" : {"handlers" : ["console" ], "level" : "INFO" , "propagate" : False },
1863
+ "sentry_sdk.errors" : {
1864
+ "handlers" : ["console" ],
1865
+ "level" : "INFO" ,
1866
+ "propagate" : False ,
1867
+ },
1820
1868
"sentry.rules" : {"handlers" : ["console" ], "propagate" : False },
1821
1869
"sentry.profiles" : {"level" : "INFO" },
1822
1870
"multiprocessing" : {
@@ -1836,7 +1884,11 @@ def SOCIAL_AUTH_DEFAULT_USERNAME() -> str:
1836
1884
"propagate" : False ,
1837
1885
},
1838
1886
"toronado" : {"level" : "ERROR" , "handlers" : ["null" ], "propagate" : False },
1839
- "urllib3.connectionpool" : {"level" : "ERROR" , "handlers" : ["console" ], "propagate" : False },
1887
+ "urllib3.connectionpool" : {
1888
+ "level" : "ERROR" ,
1889
+ "handlers" : ["console" ],
1890
+ "propagate" : False ,
1891
+ },
1840
1892
"boto3" : {"level" : "WARNING" , "handlers" : ["console" ], "propagate" : False },
1841
1893
"botocore" : {"level" : "WARNING" , "handlers" : ["console" ], "propagate" : False },
1842
1894
},
@@ -1887,7 +1939,10 @@ def custom_parameter_sort(parameter: dict) -> tuple[str, int]:
1887
1939
# We override the default behavior to skip adding the choice name to the bullet point if
1888
1940
# it's identical to the choice value by monkey patching build_choice_description_list.
1889
1941
"ENUM_GENERATE_CHOICE_DESCRIPTION" : True ,
1890
- "LICENSE" : {"name" : "Apache 2.0" , "url" : "http://www.apache.org/licenses/LICENSE-2.0.html" },
1942
+ "LICENSE" : {
1943
+ "name" : "Apache 2.0" ,
1944
+ "url" : "http://www.apache.org/licenses/LICENSE-2.0.html" ,
1945
+ },
1891
1946
"PARSER_WHITELIST" : ["rest_framework.parsers.JSONParser" ],
1892
1947
"POSTPROCESSING_HOOKS" : [
1893
1948
"sentry.apidocs.hooks.custom_postprocessing_hook" ,
@@ -2371,7 +2426,12 @@ def custom_parameter_sort(parameter: dict) -> tuple[str, int]:
2371
2426
("org:write" , "Read and write access to organization details." ),
2372
2427
("org:read" , "Read access to organization details." ),
2373
2428
),
2374
- (("org:integrations" , "Read, write, and admin access to organization integrations." ),),
2429
+ (
2430
+ (
2431
+ "org:integrations" ,
2432
+ "Read, write, and admin access to organization integrations." ,
2433
+ ),
2434
+ ),
2375
2435
(
2376
2436
("member:admin" , "Read, write, and admin access to organization members." ),
2377
2437
("member:write" , "Read and write access to organization members." ),
@@ -2737,7 +2797,10 @@ def custom_parameter_sort(parameter: dict) -> tuple[str, int]:
2737
2797
{
2738
2798
"image" : f"ghcr.io/getsentry/image-mirror-library-postgres:{ PG_VERSION } -alpine" ,
2739
2799
"ports" : {"5432/tcp" : 5432 },
2740
- "environment" : {"POSTGRES_DB" : "sentry" , "POSTGRES_HOST_AUTH_METHOD" : "trust" },
2800
+ "environment" : {
2801
+ "POSTGRES_DB" : "sentry" ,
2802
+ "POSTGRES_HOST_AUTH_METHOD" : "trust" ,
2803
+ },
2741
2804
"volumes" : {
2742
2805
"postgres" : {"bind" : "/var/lib/postgresql/data" },
2743
2806
"wal2json" : {"bind" : "/wal2json" },
@@ -3373,7 +3436,6 @@ def custom_parameter_sort(parameter: dict) -> tuple[str, int]:
3373
3436
"transactions-subscription-results" : "default" ,
3374
3437
"generic-metrics-subscription-results" : "default" ,
3375
3438
"metrics-subscription-results" : "default" ,
3376
- "eap-spans-subscription-results" : "default" ,
3377
3439
"subscription-results-eap-items" : "default" ,
3378
3440
"ingest-events" : "default" ,
3379
3441
"ingest-feedback-events" : "default" ,
@@ -3407,12 +3469,10 @@ def custom_parameter_sort(parameter: dict) -> tuple[str, int]:
3407
3469
"generic-events" : "default" ,
3408
3470
"snuba-generic-events-commit-log" : "default" ,
3409
3471
"group-attributes" : "default" ,
3410
- "snuba-spans" : "default" ,
3411
3472
"snuba-items" : "default" ,
3412
3473
"shared-resources-usage" : "default" ,
3413
3474
"buffered-segments" : "default" ,
3414
3475
"buffered-segments-dlq" : "default" ,
3415
- "snuba-ourlogs" : "default" ,
3416
3476
"preprod-artifact-events" : "default" ,
3417
3477
# Taskworker topics
3418
3478
"taskworker" : "default" ,
0 commit comments