Re: multiprocessing.Process call blocks other processes from running

2017-01-14 Thread Steve D'Aprano
On Sun, 15 Jan 2017 05:46 am, Rodrick Brown wrote: > at some point the forking was working Then whatever you changed, you should change back to the way it was. That's the most important lesson here: never make two or more unrelated changes to a program unless you have a backup of the working fil

Re: multiprocessing.Process call blocks other processes from running

2017-01-14 Thread MRAB
On 2017-01-14 19:05, Joseph L. Casale wrote: while True: for client in clients: stats = ThreadStats() stats.start() p = Process(target=getWhispererLogsDirSize, args=(client,queue,)) jobs.append(p) p.start() p.join() You start one client then join before startin

RE: multiprocessing.Process call blocks other processes from running

2017-01-14 Thread Joseph L. Casale
> while True: >for client in clients: > stats = ThreadStats() > stats.start() > p = Process(target=getWhispererLogsDirSize, args=(client,queue,)) > jobs.append(p) > p.start() > p.join() You start one client then join before starting the next... Start them all an

multiprocessing.Process call blocks other processes from running

2017-01-14 Thread Rodrick Brown
I'm trying to implement a script that tracks how much space certain applications are using and send a metric to a statsd service for realtime analysis however when running this code it nots forking multiple processes its still running sequential at some point the forking was working but I can't see