: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(signals): raise inbox ranking dag run-pod memory to 16Gi (#90209)
Andrew Maguiree8b82746e67f
diff --git a/products/signals/dags/inbox_ranking/dataset/dag.py b/products/signals/dags/inbox_ranking/dataset/dag.pyindex 78eaa1f4ccdd..36d2d7614fac 100644--- a/products/signals/dags/inbox_ranking/dataset/dag.py+++ b/products/signals/dags/inbox_ranking/dataset/dag.py@@ -887,7 +887,22 @@ inbox_ranking_dataset_job = dagster.define_asset_job(# The seven label streams run sequentially and each may take its full 600s query timeout, so an# hour left a slow-but-valid pass no room for the join, the S3 writes, or an asset retry — and# the label windows only grow, since they accumulate from LABELS_EPOCH.- tags={**owner_tags, "dagster/max_runtime": str(3 * 60 * 60)},+ tags={+ **owner_tags,+ "dagster/max_runtime": str(3 * 60 * 60),+ # The state, embeddings, signal-embeddings and labels assets execute as parallel subprocesses+ # in one run pod, and the embeddings snapshot holds a 1536-float vector per live report, so+ # the pod's peak memory grows with the inventory. The default 8Gi limit is what a run gets+ # without this tag, and the peak crossed it (OOMKilled) once the inventory grew enough.+ "dagster-k8s/config": {+ "container_config": {+ "resources": {+ "requests": {"memory": "8Gi"},+ "limits": {"memory": "16Gi"},+ }+ }+ },+ },)diff --git a/products/signals/dags/inbox_ranking/training/dag.py b/products/signals/dags/inbox_ranking/training/dag.pyindex 022b8e2eed66..bbc30a90a909 100644--- a/products/signals/dags/inbox_ranking/training/dag.py+++ b/products/signals/dags/inbox_ranking/training/dag.py@@ -375,7 +375,22 @@ inbox_ranking_training_job = dagster.define_asset_job(name="inbox_ranking_training_job",selection=[EXAMPLES_TABLE, "inbox_ranking_model_candidate", "inbox_ranking_model_champion"],partitions_def=partition_def,- tags={**owner_tags, "dagster/max_runtime": str(2 * 60 * 60)},+ tags={+ **owner_tags,+ "dagster/max_runtime": str(2 * 60 * 60),+ # The examples asset holds every snapshot of the lookback window in pandas at once (state+ # plus labels per day) before the per-head builders run, so the peak grows with the+ # lookback and the inventory. Sized like the dataset job rather than left at the 8Gi+ # default so growth surfaces as a slow run, not an OOMKilled pod.+ "dagster-k8s/config": {+ "container_config": {+ "resources": {+ "requests": {"memory": "8Gi"},+ "limits": {"memory": "16Gi"},+ }+ }+ },+ },)