mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 15:42:02 +00:00
Add processlist to PipelineExecutor. Throw exception if query was killed.
This commit is contained in:
parent
5a8a367228
commit
fea33f8b60
@ -474,13 +474,11 @@ void PipelineExecutor::execute(size_t num_threads)
|
||||
throw;
|
||||
}
|
||||
|
||||
if (cancelled)
|
||||
{
|
||||
if (process_list_element && process_list_element->isKilled())
|
||||
throw Exception("Query was cancelled", ErrorCodes::QUERY_WAS_CANCELLED);
|
||||
if (process_list_element && process_list_element->isKilled())
|
||||
throw Exception("Query was cancelled", ErrorCodes::QUERY_WAS_CANCELLED);
|
||||
|
||||
if (cancelled)
|
||||
return;
|
||||
}
|
||||
|
||||
bool all_processors_finished = true;
|
||||
for (auto & node : graph)
|
||||
|
Loading…
Reference in New Issue
Block a user