1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

removed serial as it is not avialable for fork control

fixes #13037
This commit is contained in:
Brian Coca 2015-11-04 14:04:47 -05:00
parent 0abeff4511
commit 3c35655b52

View file

@ -92,9 +92,10 @@ class TaskQueueManager:
# plugins for inter-process locking. # plugins for inter-process locking.
self._connection_lockfile = tempfile.TemporaryFile() self._connection_lockfile = tempfile.TemporaryFile()
#FIXME: should this move to 'run' and get serial and play pattern applied as limiter?
# Treat "forks" config parameter as max value. Only create number of workers # Treat "forks" config parameter as max value. Only create number of workers
# equal to number of hosts in inventory if less than max value or serial batch. # equal to number of hosts in inventory if less than max value.
num_workers = min(self._options.forks, self._options.serial, len(self._inventory.list_hosts())) num_workers = min(self._options.forks, len(self._inventory.list_hosts()))
self._workers = [] self._workers = []
for i in range(num_workers): for i in range(num_workers):