Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[3.6] bpo-31326: ProcessPoolExecutor waits for the call queue thread (#3265)#3309

Closed
vstinner wants to merge 1 commit into
python:3.6python/cpython:3.6from
vstinner:futures_join_thread36Copy head branch name to clipboard
Closed

[3.6] bpo-31326: ProcessPoolExecutor waits for the call queue thread (#3265)#3309
vstinner wants to merge 1 commit into
python:3.6python/cpython:3.6from
vstinner:futures_join_thread36Copy head branch name to clipboard

Conversation

@vstinner

@vstinner vstinner commented Sep 4, 2017

Copy link
Copy Markdown
Member
  • bpo-31326: ProcessPoolExecutor waits for the call queue thread

concurrent.futures.ProcessPoolExecutor.shutdown() now explicitly
closes the call queue. Moreover, shutdown(wait=True) now also join
the call queue thread, to prevent leaking a dangling thread.

  • Fix for shutdown() being called twice.

(cherry picked from commit b713adf)

https://bugs.python.org/issue31326

* bpo-31326: ProcessPoolExecutor waits for the call queue thread

concurrent.futures.ProcessPoolExecutor.shutdown() now explicitly
closes the call queue. Moreover, shutdown(wait=True) now also join
the call queue thread, to prevent leaking a dangling thread.

* Fix for shutdown() being called twice.

(cherry picked from commit b713adf)
@vstinner

vstinner commented Sep 4, 2017

Copy link
Copy Markdown
Member Author

@pitrou, @applio: Is there a risk of breaking applications with this change? Is it worth it?

@pitrou

pitrou commented Sep 5, 2017

Copy link
Copy Markdown
Member

I don't terribly like this being backported. It does not fix any user-visible problem AFAIK.

@vstinner

vstinner commented Sep 5, 2017

Copy link
Copy Markdown
Member Author

I don't terribly like this being backported. It does not fix any user-visible problem AFAIK.

Ok, fine. I abandon this change.

@vstinner vstinner closed this Sep 5, 2017
@vstinner vstinner deleted the futures_join_thread36 branch September 5, 2017 16:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.