hundreds-breakfast-49010
03/18/2020, 11:56 PMclient.execute
with whatever pants command the user entered at the command linehundreds-breakfast-49010
03/18/2020, 11:57 PMexecute
is part of the nailgun protocol defined in a bunch of python files in pants/java
hundreds-breakfast-49010
03/18/2020, 11:57 PMNailgunExecutor
is the other, server side of this?aloof-angle-91616
03/18/2020, 11:58 PMaloof-angle-91616
03/18/2020, 11:58 PMpantsd/
aloof-angle-91616
03/18/2020, 11:59 PMaloof-angle-91616
03/18/2020, 11:59 PM<http://self.ru|self.ru>ntool()
hundreds-breakfast-49010
03/19/2020, 12:00 AMpantsd/
gets executed when the pantsd process gets a message sent to it by client.execute
?aloof-angle-91616
03/19/2020, 12:00 AMaloof-angle-91616
03/19/2020, 12:02 AMhundreds-breakfast-49010
03/19/2020, 12:02 AMaloof-angle-91616
03/19/2020, 12:03 AMaloof-angle-91616
03/19/2020, 12:06 AMPailgunHandler
in pailgun_server.py
looks promisinghundreds-breakfast-49010
03/19/2020, 12:07 AMhandle_request
?aloof-angle-91616
03/19/2020, 12:08 AMclass PailgunHandler(PailgunHandlerBase):
hundreds-breakfast-49010
03/19/2020, 12:08 AMhundreds-breakfast-49010
03/19/2020, 12:08 AMhundreds-breakfast-49010
03/19/2020, 12:09 AM_run_pants
methodaloof-angle-91616
03/19/2020, 12:09 AMhundreds-breakfast-49010
03/19/2020, 12:10 AMDaemonPantsRunner
looks like it's probably the code that actually runs pants commands in a pantsd contextaloof-angle-91616
03/19/2020, 12:10 AMhundreds-breakfast-49010
03/19/2020, 12:11 AMhundreds-breakfast-49010
03/19/2020, 12:11 AMaloof-angle-91616
03/19/2020, 12:11 AMhundreds-breakfast-49010
03/19/2020, 12:12 AMhundreds-breakfast-49010
03/19/2020, 12:13 AMaloof-angle-91616
03/19/2020, 12:14 AMhundreds-breakfast-49010
03/19/2020, 12:14 AMDaemonPantsRunner
has a run
method and this is creating a LocalPantsRunner
aloof-angle-91616
03/19/2020, 12:14 AMLocalPantsRunner
, but over a nailgun" we should feel free to cut out a lotaloof-angle-91616
03/19/2020, 12:16 AM