Irit Katriel <iritkatr...@gmail.com> added the comment:

I don't think you're supposed to close the queue more than once. The 
documentation can be improved on that. Currently the documentation of close is:

close()
Indicate that no more data will be put on this queue by the current process. 
The background thread will quit once it has flushed all buffered data to the 
pipe. This is called automatically when the queue is garbage collected.

https://docs.python.org/3/library/multiprocessing.html#multiprocessing.Queue.close

That could be read to imply to each process needs to indicate when it is done.

----------
assignee:  -> docs@python
components: +Documentation
nosy: +docs@python, iritkatriel
title: multiprocessing.Queue fails intermittently with "Broken pipe" -> [doc] 
multiprocessing.Queue fails intermittently with "Broken pipe"
type:  -> behavior
versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.6, Python 3.7, Python 
3.8

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue38561>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to