Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added percentage based progress reporters #519

Merged
merged 1 commit into from
Dec 20, 2023
Merged

Conversation

scohen
Copy link
Collaborator

@scohen scohen commented Dec 14, 2023

I thought it would be nicer to have the indexer report its progress in terms of percentage completion rather than jamming a bunch of file names in your face.

This change introduces a different funtion for percentage based progress reporting in both remote_control and server. You initialize it with the maximum value for th progress, and then update progress via a updater function that's passed into the callback you give to with_percent_progress.

I thought it would be nicer to have the indexer report its progress in
terms of percentage completion rather than jamming a bunch of file
names in your face.

This change introduces a different funtion for percentage based
progress reporting in both remote_control and server. You initialize
it with the maximum value for th progress, and then update progress
via a updater function that's passed into the callback you give to
`with_percent_progress`.
@scohen
Copy link
Collaborator Author

scohen commented Dec 19, 2023

@zachallaun @scottming ping!

Copy link
Collaborator

@scottming scottming left a comment

Choose a reason for hiding this comment

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

LGTM

image

@scohen scohen merged commit 9dba882 into main Dec 20, 2023
7 checks passed
@scohen scohen deleted the percentage-progress branch December 20, 2023 04:22
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.

2 participants