Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@app.on_event("startup/shutdown") ignored #349

Closed
paopre opened this issue Dec 5, 2020 · 3 comments
Closed

@app.on_event("startup/shutdown") ignored #349

paopre opened this issue Dec 5, 2020 · 3 comments

Comments

@paopre
Copy link

paopre commented Dec 5, 2020

Hello. This is ignored at least on daphne 3.0.1. Tested with Ubuntu 18.04

from fastapi import FastAPI

app = FastAPI()

@app.on_event("startup")
async def startup_event():
print("hello")


@adamchainz
Copy link
Member

Please provide a full replication project and the commands to run it.

@carltongibson
Copy link
Member

But Daphne doesn't yet support lifespan events.

There's an issue to add it in #264

@carltongibson
Copy link
Member

Closing as a duplicate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants