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

Emit a ResourceWarning in concurrent.futures executor destructors #74430

Closed
vstinner opened this issue May 3, 2017 · 1 comment
Closed

Emit a ResourceWarning in concurrent.futures executor destructors #74430

vstinner opened this issue May 3, 2017 · 1 comment
Labels
3.7 (EOL) end of life performance Performance or resource usage stdlib Python modules in the Lib dir

Comments

@vstinner
Copy link
Member

vstinner commented May 3, 2017

BPO 30244
Nosy @vstinner, @zhangyangyu

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 2018-09-19.23:11:41.319>
created_at = <Date 2017-05-03.07:18:07.717>
labels = ['3.7', 'library', 'performance']
title = 'Emit a ResourceWarning in concurrent.futures executor destructors'
updated_at = <Date 2018-09-19.23:11:41.318>
user = 'https://github.com/vstinner'

bugs.python.org fields:

activity = <Date 2018-09-19.23:11:41.318>
actor = 'vstinner'
assignee = 'none'
closed = True
closed_date = <Date 2018-09-19.23:11:41.319>
closer = 'vstinner'
components = ['Library (Lib)']
creation = <Date 2017-05-03.07:18:07.717>
creator = 'vstinner'
dependencies = []
files = []
hgrepos = []
issue_num = 30244
keywords = []
message_count = 1.0
messages = ['292849']
nosy_count = 2.0
nosy_names = ['vstinner', 'xiang.zhang']
pr_nums = []
priority = 'normal'
resolution = 'out of date'
stage = 'resolved'
status = 'closed'
superseder = None
type = 'resource usage'
url = 'https://bugs.python.org/issue30244'
versions = ['Python 3.7']

@vstinner
Copy link
Member Author

vstinner commented May 3, 2017

Follow-up of issues:

  • issue bpo-30110: test_asyncio reports reference leak, forgot to shutdown concurrent.futures.ProcessPoolExecutor()
  • issue bpo-30171: Emit ResourceWarning in multiprocessing Queue destructor

I propose to emit a ResourceWarning warning in concurrent.futures executor destructor if it wasn't cleaned up properly, if shutdown() wasn't called.

@vstinner vstinner added 3.7 (EOL) end of life stdlib Python modules in the Lib dir performance Performance or resource usage labels May 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 (EOL) end of life performance Performance or resource usage stdlib Python modules in the Lib dir
Projects
None yet
Development

No branches or pull requests

1 participant