mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-20 16:50:48 +00:00
Merge pull request #47309 from ClickHouse/vdimir/fix_live_view_bg_pool_exception
This commit is contained in:
commit
2aec0c1cb0
@ -241,7 +241,18 @@ StorageLiveView::StorageLiveView(
|
||||
blocks_metadata_ptr = std::make_shared<BlocksMetadataPtr>();
|
||||
active_ptr = std::make_shared<bool>(true);
|
||||
|
||||
periodic_refresh_task = getContext()->getSchedulePool().createTask("LiveViewPeriodicRefreshTask", [this]{ periodicRefreshTaskFunc(); });
|
||||
periodic_refresh_task = getContext()->getSchedulePool().createTask("LiveViewPeriodicRefreshTask",
|
||||
[this]
|
||||
{
|
||||
try
|
||||
{
|
||||
periodicRefreshTaskFunc();
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
tryLogCurrentException(log, "Exception in LiveView periodic refresh task in BackgroundSchedulePool");
|
||||
}
|
||||
});
|
||||
periodic_refresh_task->deactivate();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user