-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
bpo-39609: set the thread_name_prefix for the default asyncio executor #18458
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
bpo-39609: set the thread_name_prefix for the default asyncio executor #18458
Conversation
7ca1ec6
to
b9078e6
Compare
Codecov Report
@@ Coverage Diff @@
## master #18458 +/- ##
==========================================
- Coverage 82.20% 82.12% -0.09%
==========================================
Files 1957 1954 -3
Lines 589324 583606 -5718
Branches 44428 44428
==========================================
- Hits 484430 479259 -5171
+ Misses 95233 94702 -531
+ Partials 9661 9645 -16
Continue to review full report at Codecov.
|
Lib/asyncio/base_events.py
Outdated
@@ -806,7 +806,9 @@ def run_in_executor(self, executor, func, *args): | |||
# Only check when the default executor is being used | |||
self._check_default_executor() | |||
if executor is None: | |||
executor = concurrent.futures.ThreadPoolExecutor() | |||
executor = concurrent.futures.ThreadPoolExecutor( | |||
thread_name_prefix='asyncio_default_executor' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A shorter name is better, please apply it.
thread_name_prefix='asyncio_default_executor' | |
thread_name_prefix='asyncio' |
b9078e6
to
d9d31c9
Compare
Sorry, I can't merge this PR. Reason: |
Thanks! |
Just a small debugging improvement to identify the asyncio executor threads.
https://bugs.python.org/issue39609
Automerge-Triggered-By: @asvetlov