mirror of
https://github.com/python/cpython.git
synced 2025-07-29 06:05:00 +00:00
[3.13] gh-119819: Update logging configuration to support joinable multiproc… (GH-120090) (GH-120093)
(cherry picked from commit 983efcf15b
)
This commit is contained in:
parent
df8a98abee
commit
71f86eedeb
2 changed files with 9 additions and 3 deletions
|
@ -783,8 +783,10 @@ class DictConfigurator(BaseConfigurator):
|
|||
from multiprocessing.queues import Queue as MPQueue
|
||||
from multiprocessing import Manager as MM
|
||||
proxy_queue = MM().Queue()
|
||||
proxy_joinable_queue = MM().JoinableQueue()
|
||||
qspec = config['queue']
|
||||
if not isinstance(qspec, (queue.Queue, MPQueue, type(proxy_queue))):
|
||||
if not isinstance(qspec, (queue.Queue, MPQueue,
|
||||
type(proxy_queue), type(proxy_joinable_queue))):
|
||||
if isinstance(qspec, str):
|
||||
q = self.resolve(qspec)
|
||||
if not callable(q):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue