Exemplo n.º 1
0
 def run(self) -> None:
     # First, set the thread's logging destination to the parent thread's, meaning the console.
     native_engine.stdio_thread_set_destination(self.logging_destination)
     while not self.stop_request.isSet():  # type: ignore[attr-defined]
         self.poll_workunits(finished=False)
         self.stop_request.wait(timeout=self.report_interval)
     else:
         # Make one final call. Note that this may run after the Pants run has already
         # completed, depending on whether the thread was joined or not.
         self.poll_workunits(finished=True)
Exemplo n.º 2
0
 def run_bsp_server():
     native_engine.stdio_thread_set_destination(stdio_destination)
     conn.run()