Question: Manage multiple progress bars in a multiprocessing environment
See original GitHub issueHi,
first, thanks a lot for this beautiful library.
I wanted to know if it is possible to manage a Progress object with multiple progress bars in a multiprocessing
environment.
I just want to have a very basic progress bar for every process.
My first tries did not succeed due to the fact that the Progress object cannot be pickled (due to its usage of an RLock?).
TypeError: can't pickle _thread.RLock objects
.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:6
Top Results From Across the Web
need help with multiprocessing · Issue #121 · Textualize/rich
Sorry, I am trying to use this code to have progress reporting on a very long task, but I need to use Pool.starmap()...
Read more >Python multiprocessing progress approach - Stack Overflow
What I'm looking for could be: Simple. Each time a process finishes a file it sends a 'finished' message; The main code keeps...
Read more >Progress Bars for Python Multiprocessing Tasks - Lei Mao
Introduction. It is natural that we would like to employ progress bars in our programs to show the progress of tasks. tqdm is...
Read more >Track your loop using tqdm: 7 ways progress bars in Python ...
Track the your Python loops with a real-time progress bar. 4th one is intersting. tqdm is a Python library used for creating smart...
Read more >Multithreading and Concurrency - Java Programming Tutorial
A multi-thread program has an initial entry point (the main() method), followed by many entry and exit points, which are run concurrently with...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@willmcgugan Thanks a lot for your answer. After a bit of research, debugging, and generally playing around with the
multiprocessing
module and got the following to work:Thanks a lot. It did. It worked fine after re-structuring and using a Pipe and letting the spawned processes send their updates to the main process with their task_id.