Skip to content

📝 Add warning about lifespan functions and backwards compatibility with events - #10734

Merged
tiangolo merged 4 commits into
fastapi:masterfrom
jacob-indigo:lifespan_events_warning
Jan 12, 2024
Merged

tiangolo merged 4 commits into
fastapi:masterfrom
jacob-indigo:lifespan_events_warning

Conversation

@jacob-indigo

Copy link
Copy Markdown
Contributor

Backwards compatibility with startup/shutdown events in implemented in Starlette with a default lifespan function that calls the registered event handlers. If there is a user-provided lifespan function, those event handlers will no longer be called.

@tiangolo

Copy link
Copy Markdown
Member

📝 Docs preview for commit a117d0e at: https://a824f295.fastapitiangolo.pages.dev

@tiangolo

tiangolo commented Dec 4, 2023

Copy link
Copy Markdown
Member

📝 Docs preview for commit d432e56 at: https://c6dbf0de.fastapitiangolo.pages.dev

@jacob-indigo

Copy link
Copy Markdown
Contributor Author

@tiangolo This is my first time contributing to FastAPI. Is there anything else I need to do for this PR?

@tiangolo

Copy link
Copy Markdown
Member

📝 Docs preview for commit df51abb at: https://e35849a0.fastapitiangolo.pages.dev

@tiangolo

tiangolo commented Jan 8, 2024

Copy link
Copy Markdown
Member

📝 Docs preview for commit 19db41c at: https://1d141478.fastapitiangolo.pages.dev

@alejsdev alejsdev changed the title ✏️ docs: Add warning about lifespan functions and backwards compatibility with events 📝 Add warning about lifespan functions and backwards compatibility with events Jan 10, 2024
@alejsdev alejsdev added the docs Documentation about how to use FastAPI label Jan 10, 2024
@tiangolo

Copy link
Copy Markdown
Member

Good idea, thank you for your contribution @jacob-indigo! 🍰 ☕

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Documentation about how to use FastAPI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants