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(web-analytics): report warming progress rate per minute (#77989)

Lucas Ricoyffae24f3d13c
diff --git a/products/web_analytics/dags/cache_warming.py b/products/web_analytics/dags/cache_warming.py
index b1736428606c..99cc7d50c528 100644
--- a/products/web_analytics/dags/cache_warming.py
+++ b/products/web_analytics/dags/cache_warming.py
@@ -1080,7 +1080,10 @@ def _warm_queries(context: dagster.OpExecutionContext, mode: str, queries: list[
breakdown = ", ".join(f"{k}={v}" for k, v in sorted(outcomes.items()))
context.log.info(
f"Warming progress: {processed}/{total} ({100 * processed // total}%) "
- f"at {rate:.0f}/s, ETA ~{eta_min:.0f}m — {breakdown}"
+ # Cold passes run well under 1 shape/s, so only per-minute
+ # precision distinguishes slow-but-healthy progress from the
+ # crawl the pass deadline guards against.
+ f"at {rate * 60:.0f}/min, ETA ~{eta_min:.0f}m — {breakdown}"
)
last_log_at = now
pool.shutdown(wait=False)