: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
feat(workflows): raise default hogflow batch trigger limit to 50k (#68524)
Meikel Ratz8bea124e8f74
diff --git a/nodejs/src/cdp/config.ts b/nodejs/src/cdp/config.tsindex 58a5e16ab81b..6ad5297c3968 100644--- a/nodejs/src/cdp/config.ts+++ b/nodejs/src/cdp/config.ts@@ -274,7 +274,11 @@ export function getDefaultCdpConfig(): CdpConfig {// Destination migration diffingDESTINATION_MIGRATION_DIFFING_ENABLED: false,- CDP_BATCH_WORKFLOW_MAX_AUDIENCE_SIZE: 5000,+ // Fallback cap used only when a batch-resolve API caller does not pass max_audience_size.+ // Django's batch-job model always passes get_hogflow_batch_trigger_limit(team_id), so+ // production batches use the per-team value from settings; this is only a safety net for+ // direct callers (tests, admin tools). Match the fleet-wide default in settings.web.py.+ CDP_BATCH_WORKFLOW_MAX_AUDIENCE_SIZE: 50000,// Cyclotron NodeCYCLOTRON_NODE_MAX_CONNECTIONS: 10,diff --git a/posthog/settings/web.py b/posthog/settings/web.pyindex d01dfb157c6b..8bcbc8d7e196 100644--- a/posthog/settings/web.py+++ b/posthog/settings/web.py@@ -847,12 +847,13 @@ HOG_FUNCTIONS_DAILY_DIGEST_TEAM_IDS = get_list(get_from_env("HOG_FUNCTIONS_DAILY# Maximum audience size for HogFlow batch triggers. Default that applies to all teams unless they# opt in to the elevated value below. Only used to inform the frontend UI; no backend enforcement.-HOGFLOW_BATCH_TRIGGER_LIMIT = int(get_from_env("HOGFLOW_BATCH_TRIGGER_LIMIT", 5000))+HOGFLOW_BATCH_TRIGGER_LIMIT = int(get_from_env("HOGFLOW_BATCH_TRIGGER_LIMIT", 50000))# Elevated maximum audience size, returned for teams listed in HOGFLOW_BATCH_TRIGGER_ELEVATED_TEAM_IDS.-HOGFLOW_BATCH_TRIGGER_LIMIT_ELEVATED = int(get_from_env("HOGFLOW_BATCH_TRIGGER_LIMIT_ELEVATED", 50000))+HOGFLOW_BATCH_TRIGGER_LIMIT_ELEVATED = int(get_from_env("HOGFLOW_BATCH_TRIGGER_LIMIT_ELEVATED", 100000))# Comma-separated list of team IDs that get the elevated batch trigger limit instead of the default.+# Empty by default — everyone gets the 50k tier. Opt-in via env override for teams needing 100k.HOGFLOW_BATCH_TRIGGER_ELEVATED_TEAM_IDS: set[int] = {- int(team_id) for team_id in get_list(get_from_env("HOGFLOW_BATCH_TRIGGER_ELEVATED_TEAM_IDS", "2"))+ int(team_id) for team_id in get_list(get_from_env("HOGFLOW_BATCH_TRIGGER_ELEVATED_TEAM_IDS", ""))}# Comma-separated list of org ids allowed to receive the Error Tracking weekly digest