Fix posting slack message about ratelimits (#3582)
# What this PR does ## Which issue(s) this PR fixes https://github.com/grafana/oncall-private/issues/2374 ## Checklist - [ ] 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)
This commit is contained in:
parent
f68b9dd004
commit
0421bc472a
2 changed files with 2 additions and 1 deletions
|
|
@ -19,6 +19,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||
|
||||
- Check reason to skip notification in Slack to avoid task perform_notification retries @Ferril ([#3562](https://github.com/grafana/oncall/pull/3562))
|
||||
- Fix alert group table columns validation @Ferril ([#3577](https://github.com/grafana/oncall/pull/3577))
|
||||
- Fix posting message about rate limit to Slack @Ferril ([#3582](https://github.com/grafana/oncall/pull/3582))
|
||||
|
||||
## v1.3.80 (2023-12-14)
|
||||
|
||||
|
|
|
|||
|
|
@ -169,6 +169,6 @@ def notify_about_integration_ratelimit_in_slack(organization_id, text, **kwargs)
|
|||
if slack_team_identity is not None:
|
||||
try:
|
||||
sc = SlackClient(slack_team_identity, enable_ratelimit_retry=True)
|
||||
sc.chat_postMessage(channel=organization.general_log_channel_id, text=text, team=slack_team_identity)
|
||||
sc.chat_postMessage(channel=organization.general_log_channel_id, text=text)
|
||||
except SlackAPIError as e:
|
||||
logger.warning(f"Slack exception {e} while sending message for organization {organization_id}")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue