mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 15:42:02 +00:00
wait for currently running jobs to finish #2
This commit is contained in:
parent
a1de16d660
commit
7b99d9a176
@ -1746,7 +1746,10 @@ try
|
||||
// to avoid simultaneously running table startups and destructing databases.
|
||||
SCOPE_EXIT_SAFE(
|
||||
LOG_INFO(log, "Stopping AsyncLoader.");
|
||||
global_context->getAsyncLoader().stopAndDoNotWait(); // Note that currently running jobs will proceed
|
||||
|
||||
// Waits for all currently running jobs to finish and do not run any other pending jobs.
|
||||
// Pending jobs will be canceled and destructed later by `load_metadata_tasks` dtor.
|
||||
global_context->getAsyncLoader().stop();
|
||||
);
|
||||
|
||||
try
|
||||
|
Loading…
Reference in New Issue
Block a user