Skip to content

ThreadPoolExecutor doesn't reuse threads until #threads == max_workers #69070

@MattSpitz

Description

@MattSpitz
mannequin
BPO 24882
Nosy @brianquinlan, @pitrou, @methane, @Bluehorn, @MojoVampire, @tomMoral, @dmacnet, @iUnknwn, @pierreglaser
PRs
  • bpo-24882: Let ThreadPoolExecutor reuse idle threads before creating new thread #6375
  • bpo-24882: eagerly spawn threads in ThreadPoolExecutor #6530
  • Files
  • many_threads.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 = <Date 2019-05-22.21:34:37.217>
    created_at = <Date 2015-08-17.14:59:00.382>
    labels = ['3.8', 'type-bug', 'library']
    title = "ThreadPoolExecutor doesn't reuse threads until #threads == max_workers"
    updated_at = <Date 2019-05-22.21:34:37.216>
    user = 'https://bugs.python.org/MattSpitz'

    bugs.python.org fields:

    activity = <Date 2019-05-22.21:34:37.216>
    actor = 'pitrou'
    assignee = 'none'
    closed = True
    closed_date = <Date 2019-05-22.21:34:37.217>
    closer = 'pitrou'
    components = ['Library (Lib)']
    creation = <Date 2015-08-17.14:59:00.382>
    creator = 'Matt Spitz'
    dependencies = []
    files = ['43061']
    hgrepos = []
    issue_num = 24882
    keywords = ['patch']
    message_count = 23.0
    messages = ['248732', '248749', '266716', '266772', '279144', '279145', '315007', '315090', '315091', '315092', '315260', '315261', '315264', '315265', '315471', '315485', '315715', '341917', '341935', '342796', '342798', '343243', '343244']
    nosy_count = 11.0
    nosy_names = ['bquinlan', 'pitrou', 'methane', 'torsten', 'josh.r', 'Matt Spitz', 'tilsche', 'tomMoral', 'dmacnet', 'iunknwn', 'pierreglaser']
    pr_nums = ['6375', '6530']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue24882'
    versions = ['Python 3.8']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.8 (EOL)end of lifestdlibPython modules in the Lib dirtype-bugAn unexpected behavior, bug, or error

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions