Skip to content

Make truss FastAPI-starlette compatible with a lifespan function#2214

Open
ndeepak-baseten wants to merge 1 commit intomainfrom
ndeepak/fix-fastapi-problem
Open

Make truss FastAPI-starlette compatible with a lifespan function#2214
ndeepak-baseten wants to merge 1 commit intomainfrom
ndeepak/fix-fastapi-problem

Conversation

@ndeepak-baseten
Copy link
Contributor

@ndeepak-baseten ndeepak-baseten commented Feb 6, 2026

🚀 What

Define and use a single lifespan() function that yields after startup.

💻 How

Define function, call where needed.

🔬 Testing

Unit tests passing.

Integration tests

@ndeepak-baseten ndeepak-baseten changed the title Make truss FastAPI-compatible with a lifespan function Make truss FastAPI-starlette compatible with a lifespan function Feb 7, 2026
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

Successfully merging this pull request may close these issues.

1 participant