Skip to content

Write a topic about on_startup/on_shutdown signals usage for handling objects like DB connections #2131

@asvetlov

Description

@asvetlov

Now http://aiohttp.readthedocs.io/en/stable/web.html has signals chapter but it mentions on_prepare only: http://aiohttp.readthedocs.io/en/stable/web.html#signals
There are another topics about graceful shutdown: http://aiohttp.readthedocs.io/en/stable/web.html#graceful-shutdown and background tasks: http://aiohttp.readthedocs.io/en/stable/web.html#background-tasks

But we need explicit topic for pointing on redis/postgres/whatever initialization/cleaning-up.

See also https://stackoverflow.com/questions/45134300/aioredis-aiohttp-proper-usage-of-connection-pooling

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentationoutdated

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions