Introduce system.background_schedule_pool{,_log} to improve introspection of background jobs#91157
Merged
azat merged 7 commits intoClickHouse:masterfrom Dec 1, 2025
Merged
Conversation
Contributor
|
Workflow [PR], commit [7ce9cc4b] Summary: ❌
|
…tion of background jobs
7db4a8b to
a3a9a15
Compare
azat
added a commit
to azat/chdig
that referenced
this pull request
Nov 29, 2025
azat
added a commit
to azat/chdig
that referenced
this pull request
Nov 29, 2025
azat
added a commit
to azat/chdig
that referenced
this pull request
Nov 29, 2025
azat
added a commit
to azat/chdig
that referenced
this pull request
Nov 29, 2025
- Add missing event_date/event_time filters - Per table tasks - Tasks view - Per-task logs - Show number of tasks per table Refs: ClickHouse/ClickHouse#91157
The job is removed from the pool when executed, so we need retries
Michicosun
reviewed
Dec 1, 2025
Michicosun
approved these changes
Dec 1, 2025
Member
Author
It will never pass, it tries to run all tests, requires at least #91194 |
Merged
via the queue into
ClickHouse:master
with commit Dec 1, 2025
45c9aad
244 of 256 checks passed
Member
Member
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Introduce
system.background_schedule_pool{,_log}to improve introspection of background jobs.Various tables (and not only tables) can run periodic background tasks (that will be reflected no in
system.background_schedule_pool{,_log}) which previously lack of the introspection tools except forsystem.text_log. Now they all will be available insystem.background_schedule_pooland you can see how much time does it takes now. And alsosystem.background_schedule_pool_logadded, that includes all executed tasks with some meta information (duration, exceptions).And I've seen cases when this tasks can work incorrectly, i.e. taking too much time, and it was hard to debug before. This PR should improve this.