Add further debug logging for multiprocess test
In order to track down where we are stalling add some additional informational logging into the cleanup path. Change-Id: Ia12b1049b3a63851bde69cb5f7c3fe31b0d12c41 Related-Bug: #1357578
This commit is contained in:
parent
51de439a4d
commit
ff259324ab
|
@ -163,6 +163,7 @@ class MultiprocessWSGITest(integrated_helpers._IntegratedTestBase):
|
|||
try:
|
||||
os.kill(worker_pid, 0)
|
||||
time.sleep(0.1)
|
||||
LOG.info("Worker: %s still around, trying again" % worker_pid)
|
||||
except OSError as err:
|
||||
# by watching specifically for errno.ESRCH
|
||||
# we guarantee this loop continues until
|
||||
|
@ -171,6 +172,7 @@ class MultiprocessWSGITest(integrated_helpers._IntegratedTestBase):
|
|||
# for several cycles in case a parent process
|
||||
# needs to check their exit state.
|
||||
if err.errno == errno.ESRCH:
|
||||
LOG.info("Worker: %s successfully shut down" % worker_pid)
|
||||
break
|
||||
LOG.warning("got non-ESRCH errno %d when attempting "
|
||||
"status of worker PID %d",
|
||||
|
|
Loading…
Reference in New Issue