Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee='https://github.com/brianquinlan'closed_at=Nonecreated_at=<Date2020-01-03.21:26:24.394>labels= ['type-bug', '3.9']
title='multiprocessing: Hang when interpreter exits after ProcessPoolExecutor.shutdown(wait=False)'updated_at=<Date2020-01-28.01:40:13.223>user='https://github.com/brianquinlan'
from concurrent.futures import ProcessPoolExecutor
import time
t = ProcessPoolExecutor(max_workers=3)
t.map(time.sleep, [1,2,3])
t.shutdown(wait=False)
Results in this exception and then a hang (i.e. Python doesn't terminate):
Exception in thread QueueManagerThread:
Traceback (most recent call last):
File "/usr/local/google/home/bquinlan/cpython/Lib/threading.py", line 944, in _bootstrap_inner
self.run()
File "/usr/local/google/home/bquinlan/cpython/Lib/threading.py", line 882, in run
self._target(*self._args, **self._kwargs)
File "/usr/local/google/home/bquinlan/cpython/Lib/concurrent/futures/process.py", line 352, in _queue_management_worker
_add_call_item_to_queue(pending_work_items,
File "/usr/local/google/home/bquinlan/cpython/Lib/concurrent/futures/process.py", line 280, in _add_call_item_to_queue
call_queue.put(_CallItem(work_id,
File "/usr/local/google/home/bquinlan/cpython/Lib/multiprocessing/queues.py", line 82, in put
raise ValueError(f"Queue {self!r} is closed")
ValueError: Queue <concurrent.futures.process._SafeQueue object at 0x7f371c4ae7f0> is closed
New changeset 884eb89 by Brian Quinlan in branch 'master': bpo-39205: Tests that highlight a hang on ProcessPoolExecutor shutdown (bpo-18221) 884eb89
vstinner
changed the title
Hang when interpreter exits after ProcessPoolExecutor.shutdown(wait=False)
multiprocessing: Hang when interpreter exits after ProcessPoolExecutor.shutdown(wait=False)
Jan 28, 2020
vstinner
changed the title
Hang when interpreter exits after ProcessPoolExecutor.shutdown(wait=False)
multiprocessing: Hang when interpreter exits after ProcessPoolExecutor.shutdown(wait=False)
Jan 28, 2020
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: