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

Deprecate on_startup and on_shutdown events #2070

Merged
merged 4 commits into from
Mar 9, 2023
Merged

Conversation

Kludex
Copy link
Member

@Kludex Kludex commented Mar 9, 2023

@Kludex Kludex force-pushed the deprecate/lifespan-events branch from 50376b5 to 556cc06 Compare March 9, 2023 20:13
warnings.warn(
"The on_startup and on_shutdown parameters are deprecated, and they "
"will be removed on version 1.0. Use the lifespan parameter instead. "
"See more about it on https://www.starlette.io/events/.",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we rename this markdown file and hence the URL in this PR to avoid the link being broken in the future?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done 👍

@Kludex Kludex requested a review from adriangb March 9, 2023 20:17
Copy link
Member

@tiangolo tiangolo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! 🚀

@Kludex Kludex merged commit cc20c86 into master Mar 9, 2023
@Kludex Kludex deleted the deprecate/lifespan-events branch March 9, 2023 22:30
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.

None yet

3 participants