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(cdp): raise the default batch audience fetch budget above the 180s query cap (#125939)

Daniel Marchuk1984f8250687
diff --git a/nodejs/src/common/config.ts b/nodejs/src/common/config.ts
index 46c364167caa..52bfb1118678 100644
--- a/nodejs/src/common/config.ts
+++ b/nodejs/src/common/config.ts
@@ -457,7 +457,9 @@ export function getDefaultCommonConfig(): CommonConfig {
// Shared between ingestion and CDP
CDP_HOG_RUST_VM_EXECUTION_ENABLED: false,
CDP_HOG_RUST_VM_BATCH_EXECUTION_ENABLED: false,
- CDP_HOG_FLOW_BATCH_AUDIENCE_FETCH_TIMEOUT_MS: 30_000,
+ // Above Django's WORKFLOWS_BATCH_AUDIENCE_QUERY_TIMEOUT_SECONDS (180s), so ClickHouse ends a slow
+ // audience query before this client gives up and a retry never overlaps a query that still runs.
+ CDP_HOG_FLOW_BATCH_AUDIENCE_FETCH_TIMEOUT_MS: 185_000,
TRANSFORMATIONS_HOG_TIMEOUT_MS: 300,
// Event loop yield helper