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

[REQUEST] Provide the completed Parameter for the track Function to Support Resumable Progress #3219

Open
Haskely opened this issue Nov 30, 2023 · 1 comment

Comments

@Haskely
Copy link
Contributor

Haskely commented Nov 30, 2023

Issue Description:

I've noticed that when using the track function in rich.progress, there is no direct way to set the completed steps (completed), making it less convenient to implement resumable progress.

Expected Solution:

I would like to request the addition of a completed parameter in the track function. This enhancement would make it easier for users to implement resumable progress by allowing the saving and loading of completed work, enabling the ability to resume progress mid-task.

Example Usage:

from rich.progress import track

# Current usage
for item in track(items, description="Processing..."):
    # Some processing logic

# Expected usage
for item in track(items, description="Processing...", completed=saved_progress):
    # Some processing logic
Copy link

Thank you for your issue. Give us a little time to review it.

PS. You might want to check the FAQ if you haven't done so already.

This is an automated reply, generated by FAQtory

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant