Do not retry on SlackAPICantUpdateMessageError errors (#4405)
Related to https://github.com/grafana/oncall/pull/4329
This commit is contained in:
parent
80ecde6fbb
commit
6acbb71fad
2 changed files with 4 additions and 0 deletions
|
|
@ -3,6 +3,7 @@ import typing
|
|||
|
||||
from apps.slack.client import SlackClient
|
||||
from apps.slack.errors import (
|
||||
SlackAPICantUpdateMessageError,
|
||||
SlackAPIChannelArchivedError,
|
||||
SlackAPIChannelInactiveError,
|
||||
SlackAPIChannelNotFoundError,
|
||||
|
|
@ -56,6 +57,7 @@ class AlertGroupSlackService:
|
|||
raise
|
||||
except (
|
||||
SlackAPIMessageNotFoundError,
|
||||
SlackAPICantUpdateMessageError,
|
||||
SlackAPIChannelInactiveError,
|
||||
SlackAPITokenError,
|
||||
SlackAPIChannelNotFoundError,
|
||||
|
|
|
|||
|
|
@ -9,6 +9,7 @@ from django.utils.text import Truncator
|
|||
from apps.api.permissions import RBACPermission
|
||||
from apps.slack.constants import BLOCK_SECTION_TEXT_MAX_SIZE, DIVIDER
|
||||
from apps.slack.errors import (
|
||||
SlackAPICantUpdateMessageError,
|
||||
SlackAPIChannelArchivedError,
|
||||
SlackAPIChannelInactiveError,
|
||||
SlackAPIChannelNotFoundError,
|
||||
|
|
@ -43,6 +44,7 @@ logger.setLevel(logging.DEBUG)
|
|||
RESOLUTION_NOTE_EXCEPTIONS = (
|
||||
SlackAPIChannelNotFoundError,
|
||||
SlackAPIMessageNotFoundError,
|
||||
SlackAPICantUpdateMessageError,
|
||||
SlackAPIChannelArchivedError,
|
||||
SlackAPIInvalidAuthError,
|
||||
SlackAPITokenError,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue