You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug on_start lifespan callback starts without event loop.
To Reproduce
It's strange because sources already contain "test" file for lifespan, but for some reason lifespan is set to False.
Steps to reproduce the behavior:
docker run -it --rm python:3.10-slim bash
apt-get update && apt-get install git libuv1 zlib1g -y
git clone https://github.com/cirospaciari/socketify.py.git &&cd socketify.py
# Last commit on main branch when this issue was created
git checkout e8b4c21515a32f2d99c7d93755e4d40187aceb3e
pip install -e .
sed -i 's\lifespan=False\lifespan=True\g' src/tests.py
python src/tests.py
Describe the bug
on_start
lifespan callback starts without event loop.To Reproduce
It's strange because sources already contain "test" file for lifespan, but for some reason lifespan is set to False.
Steps to reproduce the behavior:
Expected behavior
Lifecycle event
on_start
functions normallyScreenshots
Desktop (please complete the following information):
UbuntuDockerAdditional context
Probably related to #135 and #137
P.S. It would be great to allow register
@asynccontextmanager
, likeaiohttp cleanup_ctx
orFastAPI lifespan
but that is separate feature request.The text was updated successfully, but these errors were encountered: