MCPcopy Create free account
hub / github.com/apache/impala / wait_for_exit

Method wait_for_exit

tests/common/impala_cluster.py:541–546  ·  view source on GitHub ↗

Wait until the process exits (or return immediately if it already has exited.

(self)

Source from the content-addressed store, hash-verified

539 self.start()
540
541 def wait_for_exit(self):
542 """Wait until the process exits (or return immediately if it already has exited."""
543 LOG.info('Waiting for exit: {0} (PID: {1})'.format(
544 ' '.join(self.cmd), self.get_pid()))
545 while self.__get_pid() is not None:
546 sleep(0.01)
547
548 def kill_and_wait_for_exit(self, signal=SIGKILL):
549 """Kill the process and wait for it to exit"""

Calls 4

get_pidMethod · 0.95
__get_pidMethod · 0.95
formatMethod · 0.45
joinMethod · 0.45