v.24.12Improvement

Adding Cancellation Logic with CancellationChecker for Query Timeouts

Adding a new cancellation logic: CancellationChecker checks timeouts for every started query and stops them once the timeout has reached. #69880 (Yarik Briukhovetskyi).
Introduces a new cancellation mechanism called CancellationChecker that monitors and cancels queries once their specified timeout is reached.

Why it matters

The feature solves the problem of long-running or stuck queries by providing an automated way to stop queries after a timeout expires, improving resource management and system responsiveness.

How to use it

Users can enable this feature to automatically enforce query timeouts, which will trigger the CancellationChecker to terminate queries that exceed their allowed execution time. Configuration details and timeout settings should be adjusted according to user needs.