Python Forum
Pool multiprocessing - know current status in loop?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Pool multiprocessing - know current status in loop?
#1
Hello,
wanted to know if there is a way to know what is the current status in the loop while running pool?
for example
I have a list of 10000 items and run them in
with Pool as p:
    p.map=(testFunction, List)
is there any way to know that I'm now on item 20,100,4560?

and another question :
as I understand the number I put in the Pool(number) - is how many "services" to run 1 time ? is this correct?
for example - if I have a list of 10000 and put 10 - it mean it will run 1000 times ?
is there any way to know how many times it run \ until the end?

Thanks ,
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Multiprocessing Pool Multiple Instances How to Kill by Pool ID sunny9495 0 757 Nov-16-2022, 05:57 AM
Last Post: sunny9495
  PyRun_SimpleFile calling multiprocessing Python Class cause endless init loop Xeno 2 1,039 Sep-19-2022, 02:32 AM
Last Post: Xeno
  Python multiprocessing Pool apply async wait for process to complete sunny9495 6 6,408 Apr-02-2022, 06:31 AM
Last Post: sunny9495
  pool mysql error - not catch by try\except? korenron 1 2,140 Jul-05-2021, 11:26 AM
Last Post: ibreeden
  python multiprocessing import Pool, cpu_count: causes forever loop | help to remove Hassibayub 0 1,860 Jun-18-2020, 05:27 PM
Last Post: Hassibayub
  Process (pool,map) strange behaviour maverick76 1 1,934 Feb-03-2020, 02:43 PM
Last Post: maverick76
  How to use pool.map effectively? AlekseyPython 10 6,388 Oct-11-2019, 05:50 AM
Last Post: AlekseyPython
  running multiple commands in a parallel pool Skaperen 6 3,933 Jul-30-2019, 05:49 AM
Last Post: Skaperen
  parallel for loop with multiprocessing dervast 0 2,011 Jul-04-2019, 03:16 PM
Last Post: dervast
  Multiprocessing my Loop/Iteration (Try...Except) Jompie96 7 4,579 Jun-19-2019, 12:59 PM
Last Post: noisefloor

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020