Skip to content

concurrent.futures.ThreadPoolExecutor/ProcessPoolExecutor should accept an initializer argument #65622

@andreasvc

Description

@andreasvc
mannequin
BPO 21423
Nosy @vsajip, @brianquinlan, @mdickinson, @pitrou, @giampaolo, @PCManticore, @serhiy-storchaka, @s0undt3ch, @thehesiod, @MojoVampire, @andreasvc, @nchammas
PRs
  • bpo-21423: Add an initializer argument to {Process,Thread}PoolExecutor #4241
  • Silence error output in test_concurrent_futures (bpo-21423) #4347
  • Files
  • pool_initializer.patch: add initializer and initargs keywords to both ThreadPoolExecutor and ProcessPoolExecutor
  • pool_initializer_tests.patch: add tests
  • pool_init.patch: Update patch to apply against latest, tweak exception handling
  • init_patch_updated.patch: Supress tracebacks in negative tests, fix race condition and a typo in ThreadPoolExecutor
  • init_patch_updated2.patch: Make ProcessPool/ThreadPool behavior when the initializer fails consistent.
  • 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 2017-11-09.14:51:39.458>
    created_at = <Date 2014-05-03.23:38:08.555>
    labels = ['3.7', 'type-feature', 'library']
    title = 'concurrent.futures.ThreadPoolExecutor/ProcessPoolExecutor should accept an initializer argument'
    updated_at = <Date 2017-11-09.14:59:25.865>
    user = 'https://github.com/andreasvc'

    bugs.python.org fields:

    activity = <Date 2017-11-09.14:59:25.865>
    actor = 'serhiy.storchaka'
    assignee = 'none'
    closed = True
    closed_date = <Date 2017-11-09.14:51:39.458>
    closer = 'pitrou'
    components = ['Library (Lib)']
    creation = <Date 2014-05-03.23:38:08.555>
    creator = 'andreasvc'
    dependencies = []
    files = ['35179', '35181', '36047', '36335', '36339']
    hgrepos = []
    issue_num = 21423
    keywords = ['patch']
    message_count = 30.0
    messages = ['217846', '218019', '218020', '218024', '218040', '218090', '218093', '218462', '218518', '223741', '225159', '225174', '225176', '225177', '239166', '261928', '279755', '299285', '305451', '305463', '305550', '305601', '305602', '305605', '305873', '305954', '305956', '305959', '305962', '305963']
    nosy_count = 16.0
    nosy_names = ['vinay.sajip', 'bquinlan', 'mark.dickinson', 'pitrou', 'giampaolo.rodola', 'Claudiu.Popa', 'jcon', 'serhiy.storchaka', 'mdengler', 's0undt3ch', 'thehesiod', 'josh.r', 'andreasvc', 'dan.oreilly', 'nchammas', 'Shiming He']
    pr_nums = ['4241', '4347']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue21423'
    versions = ['Python 3.7']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.7 (EOL)end of lifestdlibStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancement

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions