https://pantsbuild.org/ logo
#development
Title
# development
l

limited-country-20626

10/04/2018, 5:26 PM
how do you all monitor that?
a

aloof-angle-91616

10/07/2018, 2:33 AM
hey, i think this is a legitimate question. i was looking in
zinc_compile.py
earlier for a separate reason, and it subclasses
JvmCompile
, and at the bottom of
JvmCompile.do_compile(self)
(called by the
self.execute()
method), you can see
exec_graph = ExecutionGraph(jobs, self.get_options().print_exception_stacktrace)
. if you then look in
execution_graph.py
,
ExecutionGraph
is what i thought handled the parallelism directly, but actually it's
WorkerPool
-- at the top of
worker_pool.py
you'll see at the top of the file
from multiprocessing.pool import ThreadPool
. I would probably look there to see what mechanisms there are for managing and querying the status of individual threads (which is a generally useful sort of thing to think about, i think).
let me know if you're way past that already
i can do more digging if the above isn't clear because i don't know the answer immediately if it wasn't clear
no sweat