Movatterモバイル変換


[0]ホーム

URL:


homepage

Issue31326

This issue trackerhas been migrated toGitHub, and is currentlyread-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title:concurrent.futures: ProcessPoolExecutor.shutdown(wait=True) should wait for the call queue thread
Type:resource usageStage:resolved
Components:Versions:Python 3.7
process
Status:closedResolution:fixed
Dependencies:Superseder:
Assigned To:Nosy List: vstinner
Priority:normalKeywords:

Created on2017-09-01 16:45 byvstinner, last changed2022-04-11 14:58 byadmin. This issue is nowclosed.

Pull Requests
URLStatusLinkedEdit
PR 3265mergedvstinner,2017-09-01 16:49
PR 3309closedvstinner,2017-09-04 21:21
Messages (4)
msg301135 -(view)Author: STINNER Victor (vstinner)*(Python committer)Date: 2017-09-01 16:45
concurrent.futures.ProcessPoolExecutor.shutdown(wait=True) doesn't wait for the call queue thread, and so test_concurrent_futures randomly emits warnings about dangling threads, especially withPR 3138 ofbpo-31234.Attached PR fixes the issue.
msg301139 -(view)Author: STINNER Victor (vstinner)*(Python committer)Date: 2017-09-01 17:03
See alsobpo-31249 and commitbc61315377056fe362b744d9c44e17cd3178ce54: "Fix ref cycle in ThreadPoolExecutor".
msg301154 -(view)Author: STINNER Victor (vstinner)*(Python committer)Date: 2017-09-01 22:25
New changesetb713adf27a76b5df95e3ee5f85f9064a2763ae35 by Victor Stinner in branch 'master':bpo-31326: ProcessPoolExecutor waits for the call queue thread (#3265)https://github.com/python/cpython/commit/b713adf27a76b5df95e3ee5f85f9064a2763ae35
msg301332 -(view)Author: STINNER Victor (vstinner)*(Python committer)Date: 2017-09-05 16:43
Antoine Pitrou: "I don't terribly like this being backported. It does not fix any user-visible problem AFAIK."https://github.com/python/cpython/pull/3309#issuecomment-327231614Ok, let's close this issue.
History
DateUserActionArgs
2022-04-11 14:58:51adminsetgithub: 75507
2017-09-05 16:43:29vstinnersetstatus: open -> closed
resolution: fixed
messages: +msg301332

stage: resolved
2017-09-04 21:21:34vstinnersetpull_requests: +pull_request3337
2017-09-01 22:25:13vstinnersetmessages: +msg301154
2017-09-01 17:03:45vstinnersetmessages: +msg301139
2017-09-01 16:49:08vstinnersetpull_requests: +pull_request3309
2017-09-01 16:45:47vstinnercreate
Supported byThe Python Software Foundation,
Powered byRoundup
Copyright © 1990-2022,Python Software Foundation
Legal Statements

[8]ページ先頭

©2009-2026 Movatter.jp