Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[doc] multiprocessing.Queue fails intermittently with "Broken pipe" #82742

Closed
SamuelGrayson mannequin opened this issue Oct 23, 2019 · 4 comments
Closed

[doc] multiprocessing.Queue fails intermittently with "Broken pipe" #82742

SamuelGrayson mannequin opened this issue Oct 23, 2019 · 4 comments
Labels
3.9 only security fixes 3.10 only security fixes 3.11 only security fixes docs Documentation in the Doc dir stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error

Comments

@SamuelGrayson
Copy link
Mannequin

SamuelGrayson mannequin commented Oct 23, 2019

BPO 38561
Nosy @iritkatriel
Files
  • test.py
  • 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 = None
    closed_at = None
    created_at = <Date 2019-10-23.01:40:48.912>
    labels = ['type-bug', '3.9', '3.10', '3.11', 'library', 'docs']
    title = '[doc] multiprocessing.Queue fails intermittently with "Broken pipe"'
    updated_at = <Date 2022-01-19.10:16:13.205>
    user = 'https://bugs.python.org/SamuelGrayson'

    bugs.python.org fields:

    activity = <Date 2022-01-19.10:16:13.205>
    actor = 'iritkatriel'
    assignee = 'docs@python'
    closed = False
    closed_date = None
    closer = None
    components = ['Documentation', 'Library (Lib)']
    creation = <Date 2019-10-23.01:40:48.912>
    creator = 'Samuel Grayson'
    dependencies = []
    files = ['48674']
    hgrepos = []
    issue_num = 38561
    keywords = []
    message_count = 2.0
    messages = ['355204', '410932']
    nosy_count = 3.0
    nosy_names = ['docs@python', 'Samuel Grayson', 'iritkatriel']
    pr_nums = []
    priority = 'normal'
    resolution = None
    stage = None
    status = 'open'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue38561'
    versions = ['Python 3.9', 'Python 3.10', 'Python 3.11']

    @SamuelGrayson
    Copy link
    Mannequin Author

    SamuelGrayson mannequin commented Oct 23, 2019

    See this SO post for more details

    @SamuelGrayson SamuelGrayson mannequin added 3.7 (EOL) end of life 3.8 only security fixes stdlib Python modules in the Lib dir labels Oct 23, 2019
    @iritkatriel
    Copy link
    Member

    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.

    @iritkatriel iritkatriel added 3.9 only security fixes 3.10 only security fixes 3.11 only security fixes docs Documentation in the Doc dir and removed 3.7 (EOL) end of life 3.8 only security fixes labels Jan 19, 2022
    @iritkatriel iritkatriel changed the title multiprocessing.Queue fails intermittently with "Broken pipe" [doc] multiprocessing.Queue fails intermittently with "Broken pipe" Jan 19, 2022
    @iritkatriel iritkatriel added the type-bug An unexpected behavior, bug, or error label Jan 19, 2022
    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    @slateny
    Copy link
    Contributor

    slateny commented May 4, 2022

    Related to #80025 (and possibly the referenced #91185 and #31913)

    @geryogam
    Copy link
    Contributor

    @JelleZijlstra, could you also close this issue now that it has been fixed in PR #31913?

    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    3.9 only security fixes 3.10 only security fixes 3.11 only security fixes docs Documentation in the Doc dir stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error
    Projects
    None yet
    Development

    No branches or pull requests

    4 participants