> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bbrands.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Notifications operations runbook

> What keeps the notification module healthy: alerts and their thresholds, failed messages and replay, stalled events, paused lanes, health checks, kill switches and the configuration it needs.

## What it is for

This page is for whoever is on call for notifications: which alerts exist, what each one means and what to do. It
replaces the old "Operations" page of the OneSignal era, which now redirects here. Business units follow the same
steps from the module's screens; the database is only needed when a step says so.

## Alerts

The alert job runs every 5 minutes and posts to Slack and Better Stack.

| Alert | Severity | Fires when | First step |
| - | - | - | - |
| `failure-rate` | High | More than 5 % of sends failed in 15 minutes (at least 50 attempted) | Open [**Sends**](https://docs.bbrands.io/enterprise/notifications/operation/sends.md) filtered by **Failed** and read the last error; check the provider's status page |
| `email-hard-bounce-rate` | High | More than 2 % hard bounces in 60 minutes (at least 200 emails) | Look for a list or a campaign with bad addresses; pause it if it is a campaign |
| `email-complaint-rate` | High | More than 0.1 % spam marks in 24 hours (at least 500 delivered) | Review the marketing content and frequency caps with the business unit |
| `dead-letters` | High | 10 or more failed messages in 15 minutes | Follow "Failed messages" below |
| `invalid-content` | Medium | At least one send skipped as **Invalid content** in 15 minutes | Open the occurrence, find the template and fix it |
| `critical-silent-event` | Medium | A critical event that fired in the previous 7 days has not fired in 24 hours | Check the producing flow and its feature flag |
| `lane-paused` | Medium | A lane has been paused for more than 30 minutes | Confirm the pause is intended; resume it in [**Queues**](https://docs.bbrands.io/enterprise/notifications/operation/queues.md) |
| `provider-webhook-silence` | High | Sends went out but no provider event arrived in 30 minutes | Check the webhook configuration and its secret in Resend or OneSignal |
| `inbox-write-failure` | High | At least one in-app item could not be written in 15 minutes | Report it to Technology: the database rejected the inbox write |

## Failed messages

A failed message is a send the provider did not accept after every automatic retry.

**1. Find them**

Open [**Queues › Failed messages**](https://docs.bbrands.io/enterprise/notifications/operation/failed-messages.md). Each row shows the channel, the attempts and the last error.

**2. Read the cause**

Open the send from the row and read its timeline. The last error tells provider outage, rejected content or a
bad address apart.

**3. Fix the cause**

Wait for the provider to recover, fix the template or correct the address. Replaying without fixing only fails
again.

**4. Replay**

Click **Replay** on the row and confirm. The message goes back to its lane once; when its send had ended
**Failed**, the send is retried with the reason "Reprocesado desde Mensajes fallidos" in its history.

**5. Check**

The send moves to **Sent** and then to **Delivered**. If it fails again, escalate with the send id.

Replaying needs `notification-lane:operate` (notification admins and operators) or `queue-event:requeue`, plus
`notification:resend` when the send ended **Failed**. Pausing or resuming a lane asks for a reason, which stays in
the lane history.

## Stalled events and paused lanes

| Situation | Sign | What to do |
| - | - | - |
| A send stays **Queued** and its lane is running | The publish to QStash failed | Wait: a job requeues open records older than 15 minutes every 10 minutes. To hurry, click **Requeue stalled** in [**Queues**](https://docs.bbrands.io/enterprise/notifications/operation/queues.md) |
| A whole channel stops | Its lane shows **Paused** | Resume it in **Queues** once the reason is gone |
| A provider is down | `failure-rate` and failed messages grow on one channel | Pause that channel's lane so sends wait instead of failing; resume when the provider recovers, then replay what failed |
| A scheduled send must not go out | It is in [**Queues › Scheduled sends**](https://docs.bbrands.io/enterprise/notifications/operation/scheduled-sends.md) | Open it and use **Cancel send** |

## Health

| Check | Every | What it watches |
| - | - | - |
| Integration health | 5 minutes | Resend and OneSignal answer, on the platform status page |
| Job heartbeats | Each run | Alert evaluation and metrics rollup ping Better Stack; a missing ping raises an incident |
| Dashboard | Live | Sends, failures, bounces and cost per channel |

## Kill switches

| Switch | Effect |
| - | - |
| Turn an event or a channel off in the [**Event catalog**](https://docs.bbrands.io/enterprise/notifications/catalog/list.md) | Stops new sends of that event or channel and cancels its scheduled sends when they are released |
| Pause a lane in [**Queues**](https://docs.bbrands.io/enterprise/notifications/operation/queues.md) | Holds the channel's sends without changing any decision |
| `notification-cron-alert-evaluate-disabled` | Stops the alert job |
| `notification-cron-retention-purge-disabled` | Stops the retention purge |
| `platform-cron-pause` | Stops every scheduled job, including the release of scheduled sends |

See [Feature flags](https://docs.bbrands.io/enterprise/notifications/reference/feature-flags.md) for the flags.

## Configuration it needs

Names only; the values live in the vault of each environment.

| Area | Variables |
| - | - |
| Resend | `INTEGRATION_RESEND_API_KEY`, `INTEGRATION_RESEND_WEBHOOK_SECRET` |
| OneSignal | `INTEGRATION_ONESIGNAL_API_KEY`, `INTEGRATION_ONESIGNAL_APP_ID`, `INTEGRATION_ONESIGNAL_BASE_URL`, `INTEGRATION_ONESIGNAL_WEBHOOK_SECRET`, and the same with `LUNCH_` for Maihue Lunch |
| Queue | `QUEUE_PROVIDER`, `QSTASH_TOKEN`, `QSTASH_CURRENT_SIGNING_KEY`, `QSTASH_NEXT_SIGNING_KEY`, `QUEUE_CONSUMER_BASE_URL` |
| Links and ids | `NOTIFICATION_LINK_BASE_URL`, `NOTIFICATION_PREFERENCE_LINK_SECRET` (and `_PREVIOUS` during a rotation), `NOTIFICATION_EXTERNAL_ID_PREVIOUS_SECRET` |
| Alerts | `BETTERSTACK_NOTIFICATION_ALERT_WEBHOOK_URL`, the Better Stack heartbeats of the two jobs, `SLACK_WEBHOOK_NOC_CRITICAL_URL`, `SLACK_WEBHOOK_NOC_WARNING_URL` |

> [!NOTE]
>
> Without OneSignal credentials the client only logs, and push, SMS and Live Activity sends end **Skipped**.
> Without the Maihue Lunch credentials only the Lunch sends are skipped.

## Technical detail

| Aspect | Detail |
| - | - |
| Alert rules | `backend/horizon-api/lib/notification/metrics/alert-rules.ts` |
| Queues screen | `frontend/horizon-enterprise/app/components/screens/notification/operations/` |
| Lane access | `backend/horizon-api/lib/endpoint/queue-lane/notification-lane-access.ts` |
| Replay and requeue | `/api/v3/queue/event/{id}/requeue`, `/api/v3/queue/event/requeue-stalled`; transport dead letters in `/api/v3/queue/dead-letter` |
| Health | `backend/horizon-api/lib/endpoint/health/integration-health.service.ts` |
| Environment registry | `backend/horizon-api/lib/common/env-validator.ts` |

## Related and history

* [Delivery pipeline](https://docs.bbrands.io/enterprise/notifications/reference/delivery-pipeline.md)
* [Providers and webhooks](https://docs.bbrands.io/enterprise/notifications/reference/providers.md)
* [Feature flags](https://docs.bbrands.io/enterprise/notifications/reference/feature-flags.md)

| Date | Change |
| - | - |
| 2026-11-11 | First version, rewritten from the old "Operations" page, which now redirects here |
| 2026-11-12 | Replay retries a Failed send and pausing a lane asks for a reason (issue #2201) |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.