Skip to content

ref(crons): Handle errors when dispatching send_incident_occurrence #80906

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

evanpurkhiser
Copy link
Member

This helps us handle things like SENTRY-3J3R

@evanpurkhiser evanpurkhiser requested a review from a team as a code owner November 18, 2024 16:47
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Nov 18, 2024
send_incident_occurrence(failed_checkin, previous_checkins, incident, received)
try:
send_incident_occurrence(failed_checkin, previous_checkins, incident, received)
except Exception:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we catch something so broad? would we want to DLQ instead?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let me add a note to follow up for this

@evanpurkhiser evanpurkhiser enabled auto-merge (squash) November 18, 2024 16:52
@evanpurkhiser evanpurkhiser merged commit f167f36 into master Nov 18, 2024
51 checks passed
@evanpurkhiser evanpurkhiser deleted the evanpurkhiser/ref-crons-handle-errors-when-dispatching-send-incident-occurrence branch November 18, 2024 17:22
Copy link

codecov bot commented Nov 18, 2024

Codecov Report

Attention: Patch coverage is 50.00000% with 2 lines in your changes missing coverage. Please review.

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
...onitors/consumers/incident_occurrences_consumer.py 50.00% 2 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##           master   #80906   +/-   ##
=======================================
  Coverage   78.42%   78.42%           
=======================================
  Files        7211     7211           
  Lines      319731   319740    +9     
  Branches    44007    44008    +1     
=======================================
+ Hits       250746   250760   +14     
+ Misses      62600    62595    -5     
  Partials     6385     6385           

Copy link

sentry-io bot commented Nov 18, 2024

Suspect Issues

This pull request was deployed and Sentry observed the following issues:

  • ‼️ Environment.DoesNotExist: Environment matching query does not exist. sentry.monitors.models in get_environment View Issue

Did you find this useful? React with a 👍 or 👎

@github-actions github-actions bot locked and limited conversation to collaborators Dec 4, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Scope: Backend Automatically applied to PRs that change backend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants