mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-06-25 14:32:05 +00:00
fix: stop job failed
This commit is contained in:
parent
8506ae9edd
commit
b1e958d806
@ -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
Block a user