mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 14:22:46 +00:00
Reduce spinning while waiting on queues
This commit is contained in:
@@ -311,7 +311,7 @@ class StrategyBase:
|
||||
else:
|
||||
raise AnsibleError("unknown result message received: %s" % result[0])
|
||||
except Queue.Empty:
|
||||
pass
|
||||
time.sleep(0.01)
|
||||
|
||||
return ret_results
|
||||
|
||||
|
||||
@@ -239,9 +239,6 @@ class StrategyModule(StrategyBase):
|
||||
self._blocked_hosts[host.get_name()] = True
|
||||
self._queue_task(host, task, task_vars, play_context)
|
||||
|
||||
results = self._process_pending_results(iterator)
|
||||
host_results.extend(results)
|
||||
|
||||
# if we're bypassing the host loop, break out now
|
||||
if run_once:
|
||||
break
|
||||
|
||||
Reference in New Issue
Block a user