mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-02 06:30:19 -07:00
remove main_q for simplicity.
main_q is not used anywhere in the codebase. It is created in TaskQueueManager._initialize_processes, bundled with rslt_q into TaskQueueManger._workers, later unwrapped in StrategyBase but not used. This queue is closed in TaskQueueManger._cleanup_processes. Historically, it is passed as a init parameter into WorkerProcess, introduced in62d7956
, but this behavior is changed in120b9a7
. Signed-off-by: 夏恺(Xia Kai) <xiaket@gmail.com>
This commit is contained in:
parent
8f1303c81a
commit
b33074b703
3 changed files with 4 additions and 6 deletions
|
@ -153,7 +153,7 @@ class StrategyBase:
|
|||
|
||||
queued = False
|
||||
while True:
|
||||
(worker_prc, main_q, rslt_q) = self._workers[self._cur_worker]
|
||||
(worker_prc, rslt_q) = self._workers[self._cur_worker]
|
||||
if worker_prc is None or not worker_prc.is_alive():
|
||||
worker_prc = WorkerProcess(rslt_q, task_vars, host, task, play_context, self._loader, self._variable_manager, shared_loader_obj)
|
||||
self._workers[self._cur_worker][0] = worker_prc
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue