My app uses concurrent.futures.ProcessPoolExecutorconcurrent.futures.ProcessPoolExecutor to run code concurrently in multiple processes.
From what I’ve gathered, there doesn’t seem to be a process-safe logging mechanism in Python. Am I correct?
If so, is there a synchronization primitive that works across processes? If not, how can I get logging without messages getting interleaved, with a minimum of extra code? Using queueing doesn’t seem like an appealing solution to me.
Thanks!
submitted by /u/Eric_Terrell
[link] [comments]
r/learnpython My app uses concurrent.futures.ProcessPoolExecutorconcurrent.futures.ProcessPoolExecutor to run code concurrently in multiple processes. From what I’ve gathered, there doesn’t seem to be a process-safe logging mechanism in Python. Am I correct? If so, is there a synchronization primitive that works across processes? If not, how can I get logging without messages getting interleaved, with a minimum of extra code? Using queueing doesn’t seem like an appealing solution to me. Thanks! submitted by /u/Eric_Terrell [link] [comments]
My app uses concurrent.futures.ProcessPoolExecutorconcurrent.futures.ProcessPoolExecutor to run code concurrently in multiple processes.
From what I’ve gathered, there doesn’t seem to be a process-safe logging mechanism in Python. Am I correct?
If so, is there a synchronization primitive that works across processes? If not, how can I get logging without messages getting interleaved, with a minimum of extra code? Using queueing doesn’t seem like an appealing solution to me.
Thanks!
submitted by /u/Eric_Terrell
[link] [comments]