mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 21:32:49 +00:00
close the pool.
This commit is contained in:
@@ -564,10 +564,12 @@ class Runner(object):
|
||||
|
||||
p = multiprocessing.Pool(self.forks)
|
||||
try:
|
||||
return p.map(_executor_hook, hosts)
|
||||
result = p.map(_executor_hook, hosts)
|
||||
p.close()
|
||||
except KeyboardInterrupt:
|
||||
p.terminate()
|
||||
raise errors.AnsibleError("Interrupted")
|
||||
return result
|
||||
|
||||
# *****************************************************
|
||||
|
||||
|
||||
Reference in New Issue
Block a user