Skip to content

Commit 0d1bae7

Browse files
committed
Slack alerts, skip account_inactive errors
1 parent fcaec8a commit 0d1bae7

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

apps/webapp/app/v3/services/alerts/deliverAlert.server.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -991,6 +991,15 @@ export class DeliverAlertService extends BaseService {
991991
throw new SkipRetryError("Slack invalid blocks");
992992
}
993993

994+
if (error.data.error === "account_inactive") {
995+
logger.info("[DeliverAlert] Slack account inactive, skipping retry", {
996+
error,
997+
message,
998+
});
999+
1000+
throw new SkipRetryError("Slack account inactive");
1001+
}
1002+
9941003
throw new Error("Slack platform error");
9951004
}
9961005

0 commit comments

Comments
 (0)