bpo-35621: Support running subprocesses in asyncio when loop is executed in non-main thread by asvetlov · Pull Request #14344 · python/cpython

added 7 commits

June 4, 2019 02:32

asvetlov

@asvetlov

@asvetlov

1st1

1st1 approved these changes Jun 30, 2019

Co-Authored-By: Yury Selivanov <yury@magic.io>

@asvetlov

Co-Authored-By: Yury Selivanov <yury@magic.io>
Co-Authored-By: Yury Selivanov <yury@magic.io>
Co-Authored-By: Yury Selivanov <yury@magic.io>
Co-Authored-By: Yury Selivanov <yury@magic.io>
Co-Authored-By: Yury Selivanov <yury@magic.io>

@asvetlov

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request

Jun 30, 2019
…ted in non-main thread (pythonGH-14344)

(cherry picked from commit 0d671c0)

Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>

miss-islington added a commit that referenced this pull request

Jun 30, 2019
…ted in non-main thread (GH-14344)

(cherry picked from commit 0d671c0)

Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>

lisroach pushed a commit to lisroach/cpython that referenced this pull request

Sep 10, 2019

DinoV pushed a commit to DinoV/cpython that referenced this pull request

Jan 14, 2020

webknjaz added a commit to aio-libs/aiohttp that referenced this pull request

Jan 25, 2021

webknjaz added a commit to aio-libs/aiohttp that referenced this pull request

Jan 25, 2021

webknjaz added a commit to aio-libs/aiohttp that referenced this pull request

Jan 25, 2021

webknjaz added a commit to aio-libs/aiohttp that referenced this pull request

Feb 21, 2021

webknjaz added a commit to aio-libs/aiohttp that referenced this pull request

Feb 24, 2021

sweatybridge pushed a commit to sweatybridge/aiohttp that referenced this pull request

Jul 7, 2021

webknjaz added a commit to aio-libs/aiohttp that referenced this pull request

Jul 7, 2021

patchback bot pushed a commit to aio-libs/aiohttp that referenced this pull request

Jul 7, 2021

link2xt added a commit to chatmail/core that referenced this pull request

May 19, 2023
With Python 3.7 asynchronous tests randomly fail
with "RuntimeError: Event loop is closed" during shutdown.
Backtrace of the error includes `SafeChildWatcher` calls.

Python 3.8 has replaced `SafeChildWatcher`
with a new `ThreadedChildWatcher` by default [1]
as a bugfix for
"asyncio.create_subprocess_exec() only works with main event loop" bug [2].

Python 3.7 scheduled end of life is 2023-06-27
according to <https://devguide.python.org/versions/>.

[1] python/cpython#14344
[2] https://bugs.python.org/issue35621

link2xt added a commit to chatmail/core that referenced this pull request

May 19, 2023
With Python 3.7 asynchronous tests randomly fail
with "RuntimeError: Event loop is closed" during shutdown.
Backtrace of the error includes `SafeChildWatcher` calls.

Python 3.8 has replaced `SafeChildWatcher`
with a new `ThreadedChildWatcher` by default [1]
as a bugfix for
"asyncio.create_subprocess_exec() only works with main event loop" bug [2].

Python 3.7 scheduled end of life is 2023-06-27
according to <https://devguide.python.org/versions/>.

[1] python/cpython#14344
[2] https://bugs.python.org/issue35621

link2xt added a commit to chatmail/core that referenced this pull request

May 20, 2023
With Python 3.7 asynchronous tests randomly fail
with "RuntimeError: Event loop is closed" during shutdown.
Backtrace of the error includes `SafeChildWatcher` calls.

Python 3.8 has replaced `SafeChildWatcher`
with a new `ThreadedChildWatcher` by default [1]
as a bugfix for
"asyncio.create_subprocess_exec() only works with main event loop" bug [2].

Python 3.7 scheduled end of life is 2023-06-27
according to <https://devguide.python.org/versions/>.

[1] python/cpython#14344
[2] https://bugs.python.org/issue35621

link2xt added a commit to chatmail/core that referenced this pull request

May 21, 2023
With Python 3.7 asynchronous tests randomly fail
with "RuntimeError: Event loop is closed" during shutdown.
Backtrace of the error includes `SafeChildWatcher` calls.

Python 3.8 has replaced `SafeChildWatcher`
with a new `ThreadedChildWatcher` by default [1]
as a bugfix for
"asyncio.create_subprocess_exec() only works with main event loop" bug [2].

Python 3.7 scheduled end of life is 2023-06-27
according to <https://devguide.python.org/versions/>.

[1] python/cpython#14344
[2] https://bugs.python.org/issue35621