Skip to content

Commit f167f36

Browse files
ref(crons): Handle errors when dispatching send_incident_occurrence (#80906)
This helps us handle things like [SENTRY-3J3R](https://sentry.sentry.io/issues/6073039699/)
1 parent de247a4 commit f167f36

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/sentry/monitors/consumers/incident_occurrences_consumer.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,10 @@ def has_all(checkins: list[MonitorCheckIn | None]) -> TypeGuard[list[MonitorChec
9696
# as unknown.
9797
pass
9898

99-
send_incident_occurrence(failed_checkin, previous_checkins, incident, received)
99+
try:
100+
send_incident_occurrence(failed_checkin, previous_checkins, incident, received)
101+
except Exception:
102+
logger.exception("failed_send_incident_occurrence")
100103

101104

102105
class MonitorIncidentOccurenceStrategyFactory(ProcessingStrategyFactory[KafkaPayload]):

0 commit comments

Comments
 (0)