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

Adding context in concurrent.futures.ProcessPoolExecutor #75721

Closed
tomMoral mannequin opened this issue Sep 21, 2017 · 2 comments
Closed

Adding context in concurrent.futures.ProcessPoolExecutor #75721

tomMoral mannequin opened this issue Sep 21, 2017 · 2 comments
Labels
3.7 stdlib type-feature

Comments

@tomMoral
Copy link
Mannequin

@tomMoral tomMoral mannequin commented Sep 21, 2017

BPO 31540
Nosy @pitrou, @tomMoral
PRs
  • #3682
  • 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-10-03.09:58:35.209>
    created_at = <Date 2017-09-21.09:01:38.314>
    labels = ['3.7', 'type-feature', 'library']
    title = 'Adding context in concurrent.futures.ProcessPoolExecutor'
    updated_at = <Date 2017-10-03.09:58:35.208>
    user = 'https://github.com/tomMoral'

    bugs.python.org fields:

    activity = <Date 2017-10-03.09:58:35.208>
    actor = 'pitrou'
    assignee = 'none'
    closed = True
    closed_date = <Date 2017-10-03.09:58:35.209>
    closer = 'pitrou'
    components = ['Library (Lib)']
    creation = <Date 2017-09-21.09:01:38.314>
    creator = 'tomMoral'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 31540
    keywords = []
    message_count = 2.0
    messages = ['302674', '303591']
    nosy_count = 2.0
    nosy_names = ['pitrou', 'tomMoral']
    pr_nums = ['3682']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue31540'
    versions = ['Python 3.7']

    @tomMoral
    Copy link
    Mannequin Author

    @tomMoral tomMoral mannequin commented Sep 21, 2017

    The ProcessPoolExecutor processes start method can only be change by changing the global default context with set_start_method at the beginning of a script. We propose to allow passing a context argument in the constructor to allow more flexible control of the executor.

    Adding this would allow testing ProcessPoolExecutor with all the available context

    @tomMoral tomMoral mannequin added 3.7 stdlib type-feature labels Sep 21, 2017
    @pitrou
    Copy link
    Member

    @pitrou pitrou commented Oct 3, 2017

    New changeset e8c368d by Antoine Pitrou (Thomas Moreau) in branch 'master':
    bpo-31540: Allow passing multiprocessing context to ProcessPoolExecutor (bpo-3682)
    e8c368d

    @pitrou pitrou closed this Oct 3, 2017
    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    3.7 stdlib type-feature
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant