mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
updated forks comment
This commit is contained in:
parent
cf248941e4
commit
9c24f88eca
1 changed files with 1 additions and 2 deletions
|
@ -177,8 +177,7 @@ class TaskQueueManager:
|
|||
are done with the current task).
|
||||
'''
|
||||
|
||||
# Treat "forks" config parameter as max value. Only create number of workers
|
||||
# equal to number of hosts in inventory if less than max value.
|
||||
# Fork # of forks, # of hosts or serial, whichever is lowest
|
||||
contenders = [self._options.forks, play.serial, len(self._inventory.get_hosts(play.hosts))]
|
||||
contenders = [ v for v in contenders if v is not None and v > 0 ]
|
||||
self._initialize_workers(min( contenders ))
|
||||
|
|
Loading…
Reference in a new issue