: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.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
fix(web-analytics): cap warmer runs at 6h via dagster run monitoring (#78522)
Lucas Ricoyb42faea89491
diff --git a/products/web_analytics/dags/cache_warming.py b/products/web_analytics/dags/cache_warming.pyindex e70589ec5359..b1736428606c 100644--- a/products/web_analytics/dags/cache_warming.py+++ b/products/web_analytics/dags/cache_warming.py@@ -1172,6 +1172,14 @@ def report_warming_plan_op(context: dagster.OpExecutionContext, queries: list[ditags={"owner": JobOwners.TEAM_WEB_ANALYTICS.value,"dagster/web_analytics_cache_warming": "web_analytics_cache_warming",+ # Run-level backstop, enforced by Dagster run monitoring. The in-op+ # guards (stall windows, pass deadline) only bound executing shard+ # code; a run can also zombie at the orchestration layer — steps dying+ # to infra and idling between retries — while mutual exclusion skips+ # every scheduled tick. Sized above the worst legitimate case (3h shard+ # deadline + retry + step scheduling), far below the days a zombie+ # otherwise holds the slot.+ "dagster/max_runtime": 6 * 3600,# The agent default is 2 CPUs / 8Gi (charts: argocd/dagster/values). The# sharded pass runs one subprocess per shard, each compiling HogQL on its# own core, so the run pod needs CPU for the shards and memory for that