mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-10-16 07:19:13 +08:00
Kill process group if orphans are still alive
after `proc.wait()`. Thanks @natefoo for the suggestion.
This commit is contained in:
@@ -121,6 +121,8 @@ class LocalJobRunner(BaseJobRunner):
|
||||
proc.wait() # reap
|
||||
if terminated:
|
||||
return
|
||||
elif check_pg(proc.pid):
|
||||
kill_pg(proc.pid)
|
||||
finally:
|
||||
with self._proc_lock:
|
||||
self._procs.remove(proc)
|
||||
|
||||
Reference in New Issue
Block a user