Thanks to visit codestin.com
Credit goes to github.com

Skip to content

FIX Have progressbar timers stop when task is finished in meta-estimators. - #34746

Merged
jeremiedbb merged 2 commits into
scikit-learn:mainfrom
FrancoisPgm:fix_finished_time_progressbar
Aug 24, 2026
Merged

FIX Have progressbar timers stop when task is finished in meta-estimators.#34746
jeremiedbb merged 2 commits into
scikit-learn:mainfrom
FrancoisPgm:fix_finished_time_progressbar

Conversation

@FrancoisPgm

Copy link
Copy Markdown
Contributor

Reference Issues/PRs

N/A

What does this implement/fix? Explain your changes.

When using a ProgressBar with max_propagation_depth > 0 in a meta-estimators, the timer of bars that are full continue to run while the following bars are filling up (see GIF below). This PR fixes this behaviour simply by using task.finished_time rather than task.elapsed when updating the finished tasks' timer.

output5

Any other comments?

ping @jeremiedbb

@Daniel15568 Daniel15568 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add a regression test covering this behavior? In particular, it would be useful to verify that once a task is finished, advancing the clock does not change the rendered elapsed time.

@FrancoisPgm FrancoisPgm moved this to PR waiting for reviews in Labs Aug 24, 2026
@FrancoisPgm FrancoisPgm added this to Labs Aug 24, 2026

@StefanieSenger StefanieSenger left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, thank you @FrancoisPgm.
I don't think we need a regression test for this.

@jeremiedbb jeremiedbb left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks

@jeremiedbb
jeremiedbb merged commit 53302ff into scikit-learn:main Aug 24, 2026
38 checks passed
@github-project-automation github-project-automation Bot moved this from PR waiting for reviews to Done in Labs Aug 24, 2026
@FrancoisPgm
FrancoisPgm deleted the fix_finished_time_progressbar branch August 25, 2026 13:05
prady0t pushed a commit to prady0t/scikit-learn that referenced this pull request Sep 2, 2026
@jeremiedbb jeremiedbb mentioned this pull request Sep 8, 2026
14 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants