From: Ondrej Lichtner olichtne@redhat.com
No need to kill finished jobs, this just spams the debug logs with useless messages.
Signed-off-by: Ondrej Lichtner olichtne@redhat.com --- lnst/Slave/Job.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lnst/Slave/Job.py b/lnst/Slave/Job.py index a953b0d..8790487 100644 --- a/lnst/Slave/Job.py +++ b/lnst/Slave/Job.py @@ -48,7 +48,8 @@ class JobContext(object):
def _kill_all_jobs(self): for id in self._dict: - self._dict[id].kill(sig=signal.SIGKILL) + if not self._dict[id]._finished: + self._dict[id].kill(sig=signal.SIGKILL)
def cleanup(self): logging.debug("Cleaning up leftover processes.")