diff --git a/posthog/temporal/common/clickhouse.py b/posthog/temporal/common/clickhouse.py index f9c9516da907d..a326e29d9fccd 100644 --- a/posthog/temporal/common/clickhouse.py +++ b/posthog/temporal/common/clickhouse.py @@ -510,6 +510,7 @@ async def get_client( max_execution_time=settings.CLICKHOUSE_MAX_EXECUTION_TIME, max_memory_usage=settings.CLICKHOUSE_MAX_MEMORY_USAGE, max_block_size=max_block_size, + cancel_http_readonly_queries_on_client_close=1, output_format_arrow_string_as_string="true", http_send_timeout=0, **kwargs,