mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Revert "Construct the multiprocessing manager only once."
This reverts commit 1d13ec2da3
.
This commit is contained in:
parent
39fe40bb60
commit
9806f89a04
1 changed files with 1 additions and 2 deletions
|
@ -55,7 +55,6 @@ multiprocessing_runner = None
|
||||||
|
|
||||||
OUTPUT_LOCKFILE = tempfile.TemporaryFile()
|
OUTPUT_LOCKFILE = tempfile.TemporaryFile()
|
||||||
PROCESS_LOCKFILE = tempfile.TemporaryFile()
|
PROCESS_LOCKFILE = tempfile.TemporaryFile()
|
||||||
MULTIPROCESSING_MANAGER = multiprocessing.Manager()
|
|
||||||
|
|
||||||
################################################
|
################################################
|
||||||
|
|
||||||
|
@ -830,7 +829,7 @@ class Runner(object):
|
||||||
def _parallel_exec(self, hosts):
|
def _parallel_exec(self, hosts):
|
||||||
''' handles mulitprocessing when more than 1 fork is required '''
|
''' handles mulitprocessing when more than 1 fork is required '''
|
||||||
|
|
||||||
manager = MULTIPROCESSING_MANAGER
|
manager = multiprocessing.Manager()
|
||||||
job_queue = manager.Queue()
|
job_queue = manager.Queue()
|
||||||
for host in hosts:
|
for host in hosts:
|
||||||
job_queue.put(host)
|
job_queue.put(host)
|
||||||
|
|
Loading…
Reference in a new issue