mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
Closing pool explicitly may cause some exceptions on certain Pythons, disable for now.
This commit is contained in:
@@ -565,7 +565,6 @@ class Runner(object):
|
|||||||
p = multiprocessing.Pool(self.forks)
|
p = multiprocessing.Pool(self.forks)
|
||||||
try:
|
try:
|
||||||
result = p.map(_executor_hook, hosts)
|
result = p.map(_executor_hook, hosts)
|
||||||
p.close()
|
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
p.terminate()
|
p.terminate()
|
||||||
raise errors.AnsibleError("Interrupted")
|
raise errors.AnsibleError("Interrupted")
|
||||||
|
|||||||
Reference in New Issue
Block a user