mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-24 19:31:26 -07:00
Revert "Flush the queued items in linear periodically"
This reverts commit d3418fd658
.
This commit is contained in:
parent
600915aa97
commit
f5cff2ced5
2 changed files with 5 additions and 9 deletions
|
@ -266,14 +266,10 @@ class StrategyModule(StrategyBase):
|
|||
if run_once:
|
||||
break
|
||||
|
||||
# flush the queue if we've got more items than we have workers,
|
||||
# and read back any results which may have arrived already
|
||||
if len(items_to_queue) > len(self._tqm._workers):
|
||||
self._tqm.queue_multiple_tasks(items_to_queue, play_context)
|
||||
items_to_queue = []
|
||||
|
||||
if self._pending_results > 0:
|
||||
results += self._process_pending_results(iterator, one_pass=True)
|
||||
# FIXME: probably not required here any more with the result proc
|
||||
# having been removed, so there's no only a single result
|
||||
# queue for the main thread
|
||||
results += self._process_pending_results(iterator, one_pass=True)
|
||||
|
||||
self._tqm.queue_multiple_tasks(items_to_queue, play_context)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue