: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(billing): bypass warehouse access control for internal dags (#66668)
Alex Lider78f8ef492cef
diff --git a/ee/billing/dags/customer_archetype.py b/ee/billing/dags/customer_archetype.pyindex afba6ff8a273..f8af12f5f9d8 100644--- a/ee/billing/dags/customer_archetype.py+++ b/ee/billing/dags/customer_archetype.py@@ -447,6 +447,8 @@ def archetype_account_data(team=team,query_type="archetype_account_data",limit_context=LimitContext.SAVED_QUERY,+ # Internal billing DAG runs without a user; bypass warehouse ACL for this trusted ETL read.+ bypass_warehouse_access_control=True,)if not response.results:diff --git a/ee/billing/dags/job_switchers.py b/ee/billing/dags/job_switchers.pyindex e8150c695641..1314f0f471bb 100644--- a/ee/billing/dags/job_switchers.py+++ b/ee/billing/dags/job_switchers.py@@ -147,6 +147,8 @@ def job_switchers_to_clay(team=team,query_type="job_switchers_query",limit_context=LimitContext.SAVED_QUERY,+ # Internal billing DAG runs without a user; bypass warehouse ACL for this trusted ETL read.+ bypass_warehouse_access_control=True,)results = response.resultsdiff --git a/ee/billing/dags/productled_outbound_targets.py b/ee/billing/dags/productled_outbound_targets.pyindex 35e6ff1f94aa..5ecb76a5f5a3 100644--- a/ee/billing/dags/productled_outbound_targets.py+++ b/ee/billing/dags/productled_outbound_targets.py@@ -346,6 +346,8 @@ def plo_base_targets(team=team,query_type="plo_base_targets",limit_context=LimitContext.SAVED_QUERY,+ # Internal billing DAG runs without a user; bypass warehouse ACL for this trusted ETL read.+ bypass_warehouse_access_control=True,)if not response.results: