oncall-engine/engine/apps
Ildar Iskhakov 30caa18f9d
Make telegram on_alert_group_action_triggered asynchronous (#3471)
# What this PR does


[send_alert_group_signal](https://github.com/grafana/oncall/blob/dev/engine/apps/alerts/tasks/send_alert_group_signal.py#L12)
task is not idempotent. It launches
[on_alert_group_action_triggered_async](a2851d3f81/engine/apps/slack/representatives/alert_group_representative.py (L158))
for slack and then might fail on
[on_alert_group_action_triggered](b2f4ffb98a/engine/apps/telegram/alert_group_representative.py (L79))
(not async) due to database DoesNotExist exception.

This PR makes telegram representative asyncronous

## Which issue(s) this PR fixes

## Checklist

- [ ] Unit, integration, and e2e (if applicable) tests updated
- [ ] Documentation added (or `pr:no public docs` PR label added if not
required)
- [ ] `CHANGELOG.md` updated (or `pr:no changelog` PR label added if not
required)
2023-12-01 10:49:00 +00:00
..
alerts Create missing direct paging integrations (#3468) 2023-11-30 17:18:18 +00:00
api upgrade to Python 3.12 (#3456) 2023-11-30 13:47:41 +00:00
api_for_grafana_incident Add render_for_web information to alert group incident API (#3005) 2023-09-12 12:02:42 +00:00
auth_token Change service account auth to use instance id instead (#3435) 2023-11-28 15:56:29 +00:00
base upgrade to Python 3.12 (#3456) 2023-11-30 13:47:41 +00:00
email Minor formatting changes (#2641) 2023-07-26 14:45:44 +01:00
grafana_plugin upgrade to Python 3.12 (#3456) 2023-11-30 13:47:41 +00:00
heartbeat Update transaction.on_commit to use partial instead of lambda (#3448) 2023-11-29 12:01:30 +00:00
integrations upgrade to Python 3.12 (#3456) 2023-11-30 13:47:41 +00:00
labels Rewrite LabelsAPIClient (#3422) 2023-11-29 08:56:42 +00:00
metrics_exporter Create missing direct paging integrations (#3468) 2023-11-30 17:18:18 +00:00
mobile_app Fix db migration for mobile app (#3260) 2023-11-02 16:40:26 +00:00
oss_installation upgrade to Python 3.12 (#3456) 2023-11-30 13:47:41 +00:00
phone_notifications upgrade to Python 3.12 (#3456) 2023-11-30 13:47:41 +00:00
public_api upgrade to Python 3.12 (#3456) 2023-11-30 13:47:41 +00:00
schedules upgrade to Python 3.12 (#3456) 2023-11-30 13:47:41 +00:00
slack upgrade to Python 3.12 (#3456) 2023-11-30 13:47:41 +00:00
social_auth Enable flake8-bugbear, fix issues (#3454) 2023-11-29 15:04:48 +00:00
telegram Make telegram on_alert_group_action_triggered asynchronous (#3471) 2023-12-01 10:49:00 +00:00
twilioapp add missing db migrations + add additional backend db migration check to CI (#3234) 2023-10-31 16:00:55 -04:00
user_management Create missing direct paging integrations (#3468) 2023-11-30 17:18:18 +00:00
webhooks Enable flake8-bugbear, fix issues (#3454) 2023-11-29 15:04:48 +00:00
zvonok add missing db migrations + add additional backend db migration check to CI (#3234) 2023-10-31 16:00:55 -04:00
__init__.py World, meet OnCall! 2022-06-03 08:09:47 -06:00