Revert "Move queuing tasks to a background thread"

This reverts commit b71957d6e6.
This commit is contained in:
James Cammarata 2016-09-15 16:55:54 -05:00
parent 70e63ddf6c
commit dfb1c0647e
8 changed files with 158 additions and 222 deletions

View file

@ -182,9 +182,7 @@ class StrategyModule(StrategyBase):
any_errors_fatal = False
results = []
items_to_queue = []
for (host, task) in host_tasks:
if not task:
continue
@ -258,8 +256,7 @@ class StrategyModule(StrategyBase):
display.debug("sending task start callback")
self._blocked_hosts[host.get_name()] = True
items_to_queue.append((host, task, task_vars))
self._pending_results += 1
self._queue_task(host, task, task_vars, play_context)
del task_vars
# if we're bypassing the host loop, break out now
@ -271,8 +268,6 @@ class StrategyModule(StrategyBase):
# queue for the main thread
results += self._process_pending_results(iterator, one_pass=True)
self._tqm.queue_multiple_tasks(items_to_queue, play_context)
# go to next host/task group
if skip_rest:
continue