asyncio: BaseEventLoop.close() shutdowns the executor without waiting causing leak of dangling threads · Issue #78218 · python/cpython · GitHub
Skip to content

asyncio: BaseEventLoop.close() shutdowns the executor without waiting causing leak of dangling threads #78218

Description

@vstinner
BPO 34037
Nosy @vstinner, @encukou, @asvetlov, @cjrh, @ambv, @1st1, @cmeyer, @aeros
PRs
  • Revert "bpo-34037, asyncio: add BaseEventLoop.wait_executor_on_close (GH-13786)" #13802
  • bpo-34037: Fix test_asyncio failure and add loop.shutdown_default_executor() #15735
  • bpo-34037: test_asyncio uses shutdown_default_executor() #16284
  • bpo-34037: Add Python API whatsnew for loop.shutdown_default_executor() #19634
  • 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 2020-04-21.21:31:38.061>
    created_at = <Date 2018-07-03.22:57:26.558>
    labels = ['tests', '3.9', 'expert-asyncio']
    title = 'asyncio: BaseEventLoop.close() shutdowns the executor without waiting causing leak of dangling threads'
    updated_at = <Date 2020-04-21.21:31:38.060>
    user = 'https://github.com/vstinner'

    bugs.python.org fields:

    activity = <Date 2020-04-21.21:31:38.060>
    actor = 'aeros'
    assignee = 'none'
    closed = True
    closed_date = <Date 2020-04-21.21:31:38.061>
    closer = 'aeros'
    components = ['Tests', 'asyncio']
    creation = <Date 2018-07-03.22:57:26.558>
    creator = 'vstinner'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 34037
    keywords = ['patch']
    message_count = 30.0
    messages = ['321006', '321534', '326050', '326052', '326259', '344475', '344476', '344477', '344545', '344547', '344548', '344552', '344686', '351231', '351232', '351349', '351359', '351384', '351394', '351396', '352788', '352789', '352797', '352798', '352822', '366812', '366821', '366936', '366939', '366943']
    nosy_count = 8.0
    nosy_names = ['vstinner', 'petr.viktorin', 'asvetlov', 'cjrh', 'lukasz.langa', 'yselivanov', 'cmeyer', 'aeros']
    pr_nums = ['13802', '15735', '16284', '19634']
    priority = 'high'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue34037'
    versions = ['Python 3.9']

    Activity

    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions