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.

fix(bigquery-batch-exports): Enable local subchannel pool (#67697)

Tomás Farías Santana91309de1f85a
diff --git a/products/batch_exports/backend/temporal/destinations/bigquery_batch_export.py b/products/batch_exports/backend/temporal/destinations/bigquery_batch_export.py
index 938b32c13f0f..43502185ce62 100644
--- a/products/batch_exports/backend/temporal/destinations/bigquery_batch_export.py
+++ b/products/batch_exports/backend/temporal/destinations/bigquery_batch_export.py
@@ -1177,6 +1177,7 @@ async def bigquery_write_async_client(credentials) -> collections.abc.AsyncItera
channel = BigQueryWriteGrpcAsyncIOTransport.create_channel(
credentials=credentials,
compression=grpc.Compression.Gzip,
+ options=[("grpc.use_local_subchannel_pool", 1)],
)
transport = BigQueryWriteGrpcAsyncIOTransport(channel=channel)
client = BigQueryWriteAsyncClient(