Skip to content

Conversation

@apata
Copy link
Contributor

@apata apata commented Jan 22, 2026

Changes

Limits ClickhouseRepo queries max_execution_time (a https://clickhouse.com/docs/operations/settings/query-complexity) in case cancel_http_readonly_queries_on_client_close doesn't take effect.

Had to refactor the cases where the repo is used with infinite timeout (exports job, a cleaning job).

Tried to unset max_execution_time in per-query settings (https://clickhouse.com/docs/operations/settings/query-level#order-of-priority), but those don't work when read-only is set (CH server does not allow it).

Tests

  • Manually tested

Changelog

  • This PR does not make a user-facing change

Documentation

  • This change does not need a documentation update

Dark mode

  • This PR does not change the UI

@apata apata added the preview label Jan 22, 2026
@github-actions
Copy link

Preview environment👷🏼‍♀️🏗️
PR-6018

@apata apata requested a review from a team January 22, 2026 14:55
readonly: 1,
join_algorithm: "direct,parallel_hash,hash",
cancel_http_readonly_queries_on_client_close: 1
# stops queries when :timeout option from above reached
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# stops queries when :timeout option from above reached
# stops queries when :timeout option from below reached

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants