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(batch-exports): widen hourly SLA to 3 hours (#101757)

Ross173778790c04
diff --git a/products/batch_exports/backend/temporal/metrics.py b/products/batch_exports/backend/temporal/metrics.py
index 392a2c5a408e..2eefe63c3fe1 100644
--- a/products/batch_exports/backend/temporal/metrics.py
+++ b/products/batch_exports/backend/temporal/metrics.py
@@ -489,7 +489,10 @@ def get_sla_from_interval(
"""Get the SLA for a batch export based on its interval string."""
match interval:
case "hour":
- return dt.timedelta(hours=1)
+ # Hourly batch exports get a wider SLA than their interval because enough runs
+ # take longer than an hour that a one hour SLA only produces alert noise.
+ # TODO: Set this back to one hour once hourly runs are fast enough to meet it.
+ return dt.timedelta(hours=3)
case "day":
return dt.timedelta(days=1)
case "week":