Skip to content

Repetition of Incomplete Progress bars #107

@sanyamsinghal

Description

@sanyamsinghal

I am using mpb module to display multiple progress bars for some ongoing process.
The issue is that progress bar's output is not correct/cleaner.
(this issue is important for us since we want to use it in our production code)

The output looks like this:

inventory  completed
country  completed
film  completed
film_actor [---------------------------------------------------------------------------------------------------------------------------------------------------------------------] 0.00%     0s
film_actor  completed
customer  completed
category  completed
film_category  completed
actor  completed
city  completed
rental [-------------------------------------------------------------------------------------------------------------------------------------------------------------------------] 0.00%     0s
payment [=============================================================>----------------------------------------------------------------------------------------------------------] 37.00%    0s
language [-----------------------------------------------------------------------------------------------------------------------------------------------------------------------] 0.00%     0s
payment_p2007_06  completed
payment_p2007_01  completed
payment_p2007_02  completed
rental [========================================================================================================>----------------------------------------------------------------] 62.00%    0s
rental [========================================================================================================>----------------------------------------------------------------] 62.00%    0s
rental  completed
sample [======================================================================================================================================================================>--] 99.00%    0s
sample  completed
temp_testing.sample [=>-------------------------------------------------------------------------------------------------------------------------------------------------------] 1.00%     1m15s
temp_testing.sample  completed
temp_testing.sample2  completed

Here you can see that rental progress bar is displayed/printed twice before competition

rental [========================================================================================================>----------------------------------------------------------------] 62.00%    0s
rental [========================================================================================================>----------------------------------------------------------------] 62.00%    0s
rental  completed

In my usecase, progress bars dynamically gets added the container based on whenever the corresponding thing to track starts.

I believe there might be some issue with the way i am using it in my code. I can share the way i have implemented it, any help would be highly appreciated. cc @vbauerster

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions