From de4eb0659f74b038f26ccc0d70e706a314f3555b Mon Sep 17 00:00:00 2001 From: Ross Gray Date: Fri, 20 Dec 2024 13:19:51 +0000 Subject: [PATCH] Set queries to cancel after disconnect --- posthog/temporal/common/clickhouse.py | 1 + 1 file changed, 1 insertion(+) 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,