-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
**This is a backport of PR #8541 as merged into master (a561fa9).** --------- Co-authored-by: Sam Bull <git@sambull.org>
- Loading branch information
1 parent
df57b9f
commit ed8de3a
Showing
3 changed files
with
127 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
The shutdown logic in 3.9 waited on all tasks, which caused issues with some libraries. | ||
In 3.10 we've changed this logic to only wait on request handlers. This means that it's | ||
important for developers to correctly handle the lifecycle of background tasks using a | ||
library such as ``aiojobs``. If an application is using ``handler_cancellation=True`` then | ||
it is also a good idea to ensure that any :func:`asyncio.shield` calls are replaced with | ||
:func:`aiojobs.aiohttp.shield`. | ||
|
||
Please read the updated documentation on these points: | ||
https://docs.aiohttp.org/en/stable/web_advanced.html#graceful-shutdown | ||
https://docs.aiohttp.org/en/stable/web_advanced.html#web-handler-cancellation | ||
|
||
-- by :user:`Dreamsorcerer` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters