Skip to content

Deprecate on_startup and on_shutdown events#2070

Merged
Kludex merged 4 commits intomasterfrom
deprecate/lifespan-events
Mar 9, 2023
Merged

Deprecate on_startup and on_shutdown events#2070
Kludex merged 4 commits intomasterfrom
deprecate/lifespan-events

Conversation

@Kludex
Copy link
Owner

@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
Contributor

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
Owner 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
Contributor

@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.

3 participants