Title: gh-111358: Fix timeout behaviour in BaseEventLoop.shutdown_default_executor by ordinary-jamie · Pull Request #115622 · python/cpython · GitHub
Open Graph Title: gh-111358: Fix timeout behaviour in BaseEventLoop.shutdown_default_executor by ordinary-jamie · Pull Request #115622 · python/cpython
X Title: gh-111358: Fix timeout behaviour in BaseEventLoop.shutdown_default_executor by ordinary-jamie · Pull Request #115622 · python/cpython
Description: Fixes the timeout behaviour in asyncio.BaseEventLoop.shutdown_default_executor to ensure that the coroutine correctly times-out when awaiting the shutdown thread. If the timeout is reaching, the thread is left to run, and is not joined (since waiting for the thread to join in this case would exceed the timeout). The Executor is shutdown without waiting. Minor updates to _do_shutdown to ensure future isn't cancelled. This is necessary since the thread can still run and attempt to set the future result/exception Issue: gh-111358
Open Graph Description: Fixes the timeout behaviour in asyncio.BaseEventLoop.shutdown_default_executor to ensure that the coroutine correctly times-out when awaiting the shutdown thread. If the timeout is reaching, the th...
X Description: Fixes the timeout behaviour in asyncio.BaseEventLoop.shutdown_default_executor to ensure that the coroutine correctly times-out when awaiting the shutdown thread. If the timeout is reaching, the th...
Opengraph URL: https://github.com/python/cpython/pull/115622
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:3153fc3f-15cf-1705-e292-3610499f9d7d |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | C7D4:2CD0FB:BF0C2F:10C975F:6A4F4D43 |
| html-safe-nonce | 91f8c29b95f885b0168329f8bff5c1440bed52b113b214ddf4edfc308b115bc6 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDN0Q0OjJDRDBGQjpCRjBDMkY6MTBDOTc1Rjo2QTRGNEQ0MyIsInZpc2l0b3JfaWQiOiIxMjg2Mzk3NzQyNjQ2NTEyOTYzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 2acc2b1cbfb1b16fed9de8f0e4ee1cdc363e4b94522dfbeef7d712758f37f208 |
| hovercard-subject-tag | pull_request:1731413264 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python/cpython/pull/115622/files |
| twitter:image | https://avatars.githubusercontent.com/u/101677823?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/101677823?s=400&v=4 |
| og:image:alt | Fixes the timeout behaviour in asyncio.BaseEventLoop.shutdown_default_executor to ensure that the coroutine correctly times-out when awaiting the shutdown thread. If the timeout is reaching, the th... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | b92d11c0aa4a77d54ef4af1078b6a15fb5a70a215b30c4ecf28889d5a8e656d9 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 4b249b445842943ed31549e027f57a8ade9881ed |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width