oncall-engine/engine/apps/alerts/tasks
Michael Derynck 2a466a0c4f
Add transaction on_commit before signals for alert group actions (#3731)
# What this PR does
Add transactions around log record creation and check transaction
on_commit before sending signals passing DB id of alert group log
records. In cases for delete we can then assume any missing IDs on tasks
are from intentionally deleted alert groups and we can stop tasks from
retrying endlessly.

## Which issue(s) this PR fixes

## Checklist

- [x] Unit, integration, and e2e (if applicable) tests updated
- [x] Documentation added (or `pr:no public docs` PR label added if not
required)
- [x] `CHANGELOG.md` updated (or `pr:no changelog` PR label added if not
required)
2024-01-31 15:54:50 -07:00
..
__init__.py Add transaction on_commit before signals for alert group actions (#3731) 2024-01-31 15:54:50 -07:00
acknowledge_reminder.py Add transaction on_commit before signals for alert group actions (#3731) 2024-01-31 15:54:50 -07:00
alert_group_web_title_cache.py remove references to AlertGroup.is_archived and AlertGroup.unarchived_objects (#2524) 2023-07-18 11:48:34 +00:00
call_ack_url.py apps.get_model -> import (#2619) 2023-07-25 09:43:23 +00:00
check_escalation_finished.py Update alert group personal notifications checker to check sent SMS (#3698) 2024-01-17 17:46:18 +00:00
compare_escalations.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
custom_button_result.py Update transaction.on_commit to use partial instead of lambda (#3448) 2023-11-29 12:01:30 +00:00
custom_webhook_result.py Add escalation chain support for new webhooks (#1654) 2023-04-05 12:03:55 +00:00
delete_alert_group.py Add transaction on_commit before signals for alert group actions (#3731) 2024-01-31 15:54:50 -07:00
distribute_alert.py Refactor create_alert task (#3759) 2024-01-30 08:39:04 +00:00
escalate_alert_group.py Update transaction.on_commit to use partial instead of lambda (#3448) 2023-11-29 12:01:30 +00:00
invite_user_to_join_incident.py apps.get_model -> import (#2619) 2023-07-25 09:43:23 +00:00
maintenance.py Update transaction.on_commit to use partial instead of lambda (#3448) 2023-11-29 12:01:30 +00:00
notify_all.py apps.get_model -> import (#2619) 2023-07-25 09:43:23 +00:00
notify_group.py WIP: Direct paging improvements (#3064) 2023-09-28 03:57:49 +00:00
notify_ical_schedule_shift.py Update when slack client ratelimit retry handler is enabled (#3447) 2023-11-30 12:35:46 +00:00
notify_user.py Retry perform_notification with Telegram ratelimit countdown on RetryAfter error (#3744) 2024-01-24 15:31:56 +00:00
resolve_alert_group_by_source_if_needed.py Minor formatting changes (#2641) 2023-07-26 14:45:44 +01:00
resolve_by_last_step.py apps.get_model -> import (#2619) 2023-07-25 09:43:23 +00:00
send_alert_group_signal.py Add transaction on_commit before signals for alert group actions (#3731) 2024-01-31 15:54:50 -07:00
send_update_log_report_signal.py Fix task retries for deleted alert groups (#3553) 2023-12-12 12:01:47 +00:00
send_update_resolution_note_signal.py apps.get_model -> import (#2619) 2023-07-25 09:43:23 +00:00
sync_grafana_alerting_contact_points.py Remove deprecated alerting integration tasks (#2944) 2023-09-01 13:11:02 +00:00
task_logger.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
unsilence.py Update transaction.on_commit to use partial instead of lambda (#3448) 2023-11-29 12:01:30 +00:00
wipe.py Improve alert group deletion API (#3124) 2023-10-05 14:32:40 +01:00