|
14 | 14 |
|
15 | 15 | from django.dispatch import receiver |
16 | 16 |
|
17 | | -from sentry import options |
18 | 17 | from sentry.constants import ObjectStatus |
19 | 18 | from sentry.hybridcloud.outbox.category import OutboxCategory |
20 | 19 | from sentry.hybridcloud.outbox.signals import process_control_outbox |
@@ -61,19 +60,11 @@ def process_sentry_app_updates(object_identifier: int, region_name: str, **kwds: |
61 | 60 | def process_sentry_app_deletes(object_identifier: int, region_name: str, **kwds: Any): |
62 | 61 | # This function should only be used when the sentry app is being deleted. |
63 | 62 | # Currently this receiver is only used for deletion. |
64 | | - if options.get("workflow_engine.sentry-app-actions-outbox"): |
65 | | - logger.info( |
66 | | - "sentry_app_update.update_action_status", |
67 | | - extra={ |
68 | | - "region_name": region_name, |
69 | | - "sentry_app_id": object_identifier, |
70 | | - }, |
71 | | - ) |
72 | | - action_service.update_action_status_for_sentry_app_via_sentry_app_id( |
73 | | - region_name=region_name, |
74 | | - status=ObjectStatus.DISABLED, |
75 | | - sentry_app_id=object_identifier, |
76 | | - ) |
| 63 | + action_service.update_action_status_for_sentry_app_via_sentry_app_id( |
| 64 | + region_name=region_name, |
| 65 | + status=ObjectStatus.DISABLED, |
| 66 | + sentry_app_id=object_identifier, |
| 67 | + ) |
77 | 68 |
|
78 | 69 |
|
79 | 70 | @receiver(process_control_outbox, sender=OutboxCategory.API_APPLICATION_UPDATE) |
|
0 commit comments