mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
Reorganizing the way the connection lockfile is created
This commit is contained in:
@@ -23,7 +23,6 @@ import multiprocessing
|
||||
import os
|
||||
import socket
|
||||
import sys
|
||||
import tempfile
|
||||
|
||||
from ansible import constants as C
|
||||
from ansible.errors import AnsibleError
|
||||
@@ -79,10 +78,6 @@ class TaskQueueManager:
|
||||
self._failed_hosts = dict()
|
||||
self._unreachable_hosts = dict()
|
||||
|
||||
# A temporary file (opened pre-fork) used by connection plugins for
|
||||
# inter-process locking.
|
||||
self._options.connection_lockfile = tempfile.TemporaryFile()
|
||||
|
||||
self._final_q = multiprocessing.Queue()
|
||||
|
||||
# create the pool of worker threads, based on the number of forks specified
|
||||
|
||||
Reference in New Issue
Block a user