mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-23 13:20:23 -07:00
Remove unused rslt_q, rename the one queue to final_q everywhere (#43894)
* Remove unused rslt_q, rename the one queue to final_q everywhere * Test update
This commit is contained in:
parent
5a49567c71
commit
17c89d1ffa
5 changed files with 23 additions and 25 deletions
|
@ -302,7 +302,7 @@ class StrategyBase:
|
|||
queued = False
|
||||
starting_worker = self._cur_worker
|
||||
while True:
|
||||
(worker_prc, rslt_q) = self._workers[self._cur_worker]
|
||||
worker_prc = self._workers[self._cur_worker]
|
||||
if worker_prc is None or not worker_prc.is_alive():
|
||||
self._queued_task_cache[(host.name, task._uuid)] = {
|
||||
'host': host,
|
||||
|
@ -312,7 +312,7 @@ class StrategyBase:
|
|||
}
|
||||
|
||||
worker_prc = WorkerProcess(self._final_q, task_vars, host, task, play_context, self._loader, self._variable_manager, shared_loader_obj)
|
||||
self._workers[self._cur_worker][0] = worker_prc
|
||||
self._workers[self._cur_worker] = worker_prc
|
||||
worker_prc.start()
|
||||
display.debug("worker is %d (out of %d available)" % (self._cur_worker + 1, len(self._workers)))
|
||||
queued = True
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue