mirror of https://github.com/jumpserver/jumpserver
fix: stop job failed
parent
d0e355a86d
commit
001828fb2b
|
@ -19,7 +19,7 @@ def kill_ansible_ssh_process(pid):
|
||||||
|
|
||||||
for child in process.children(recursive=True):
|
for child in process.children(recursive=True):
|
||||||
if not _should_kill(child):
|
if not _should_kill(child):
|
||||||
return
|
continue
|
||||||
try:
|
try:
|
||||||
child.kill()
|
child.kill()
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
|
Loading…
Reference in New Issue