oncall-engine/engine/apps/telegram
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
..
migrations Add database migrations linter (#1020) 2023-02-06 16:01:37 +08:00
models Fix "Replied message not found" Telegram bug (#3013) 2023-09-12 15:55:13 +00:00
renderers add mypy static type checker to backend codebase (#2151) 2023-06-12 12:50:33 -04:00
tests Fix getting alert group from telegram action (#3262) 2023-11-03 10:22:38 +00:00
updates Fix getting alert group from telegram action (#3262) 2023-11-03 10:22:38 +00:00
__init__.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
alert_group_representative.py Make telegram on_alert_group_action_triggered asynchronous (#3471) 2023-12-01 10:49:00 +00:00
apps.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
client.py Telegram long polling (#2250) 2023-08-24 09:12:24 +02:00
decorators.py Validate Slack and Telegram host env variables (#307) 2022-08-02 12:57:12 +03:00
signals.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
tasks.py Make telegram on_alert_group_action_triggered asynchronous (#3471) 2023-12-01 10:49:00 +00:00
urls.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
utils.py Introduce org uuid (#947) 2022-12-06 22:42:58 +08:00
views.py Fix SQLite permission issue (#1984) 2023-05-22 19:16:31 +00:00