Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

chore(alerts): name the renamed delivery bound in a docstring (#111158)

Jimmy Zhufafc731cc4b6
diff --git a/docs/internal/alerts-platform-temporal.md b/docs/internal/alerts-platform-temporal.md
index 21bb4457b87a..6805f203658e 100644
--- a/docs/internal/alerts-platform-temporal.md
+++ b/docs/internal/alerts-platform-temporal.md
@@ -368,7 +368,7 @@ The write is safe to run twice. An attempt that commits leaves every configurati
and a replay skips those rows rather than advancing them again and skipping a cycle.
It runs in one transaction, so no alert is marked as notified while its schedule still says the check is due.
-`MAX_PREVIEWS_PER_CYCLE` bounds an outcome together with the delivery it belongs to.
+`MAX_DELIVERIES_PER_CYCLE` bounds an outcome together with the delivery it belongs to.
Recording an outcome whose preview the batch cannot carry would leave an alert firing with nothing announcing it,
and a firing alert does not fire again. Dropping the pair leaves it due, the way a truncated cohort already behaves.
`alerts_platform_deliveries_deferred_total` counts them.
diff --git a/products/alerts_platform/backend/facade/contracts.py b/products/alerts_platform/backend/facade/contracts.py
index e296160842bb..cc79033da275 100644
--- a/products/alerts_platform/backend/facade/contracts.py
+++ b/products/alerts_platform/backend/facade/contracts.py
@@ -234,7 +234,7 @@ class GroupTransition:
The condition and the source config a message also needs stay on the history row the
delivery addresses, because `source_config` is an unbounded filter tree and one per
- transition would blow the payload bound `MAX_PREVIEWS_PER_CYCLE` was sized against.
+ transition would blow the payload bound `MAX_DELIVERIES_PER_CYCLE` was sized against.
"""
grouping_key: str