Skip to content
#

python-types

Here are 13 public repositories matching this topic...

fastapi
jonathanunderwood
jonathanunderwood commented Dec 22, 2019

Describe the bug

Startup event handlers for sub-applications never trigger.

To Reproduce

from fastapi import FastAPI


sub_app = FastAPI(openapi_prefix="/subapp")


@sub_app.on_event("startup")
async def sub_app_startup():
    print("++++ Sub-app startup event")  # Never fires


app = FastAPI()


@app.on_event("startup")
async def app_startup():
    prin

Improve this page

Add a description, image, and links to the python-types topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the python-types topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.