python / python/cpython

Interpreter exit blocks waiting for futures of shut-down ThreadPoolExecutors

Open
#80,961 20 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

3.7 (EOL) 3.8 (EOL) stdlib type-bug
Dominant language
Python
Stars
77.2k
Forks
36k
PR merge metrics
PR metrics pending

Description

BPO 36780
Nosy @brianquinlan, @pitrou, @hniksic, @asvetlov, @Bluehorn, @aeros
PRs
  • python/cpython#13250
  • Files
  • pool-shutdown
  • 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-05-03.09:28:03.892>
    labels = ['3.7', '3.8', 'type-bug', 'library']
    title = 'Interpreter exit blocks waiting for futures of shut-down ThreadPoolExecutors'
    updated_at = <Date 2020-04-15.02:39:49.873>
    user = 'https://github.com/hniksic'
    

    bugs.python.org fields:

    activity = <Date 2020-04-15.02:39:49.873>
    actor = 'aeros'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Library (Lib)']
    creation = <Date 2019-05-03.09:28:03.892>
    creator = 'hniksic'
    dependencies = []
    files = ['48297']
    hgrepos = []
    issue_num = 36780
    keywords = ['patch']
    message_count = 19.0
    messages = ['341329', '341515', '341573', '341630', '341734', '341737', '341992', '342259', '342260', '342261', '366372', '366415', '366419', '366421', '366424', '366431', '366437', '366439', '366479']
    nosy_count = 6.0
    nosy_names = ['bquinlan', 'pitrou', 'hniksic', 'asvetlov', 'torsten', 'aeros']
    pr_nums = ['13250']
    priority = 'normal'
    resolution = None
    stage = 'patch review'
    status = 'open'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue36780'
    versions = ['Python 3.7', 'Python 3.8']
    

    Contributor guide

    Open the contributing guide

    First steps

    1. Read the whole issue, then the project's contributing guide.
    2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
    3. Fork the repository and make your change on a branch.
    4. Open a pull request that references the issue number.

    Research direction

    Review PR python/cpython#13250 and the uploaded pool-shutdown file first; the issue concerns interpreter exit, futures, and shut-down ThreadPoolExecutors. Reproduce the reported exit behavior and compare it with the proposed patch. Done means interpreter exit no longer blocks waiting for futures from shut-down executors.

    Written by the indexing model from the issue text.

    Assessment

    Tech stack
    python
    Domain
    backend
    Issue type
    Bug
    Difficulty
    4/5
    Estimated time
    3-5 days
    Activity status
    Stale
    Clarity
    Needs clarification
    Newbie friendliness
    25/100

    Get new issues in your inbox

    A short digest of beginner-friendly GitHub issues.