fastapi icon indicating copy to clipboard operation
fastapi copied to clipboard

📝 Update documentation for deprecated on_startup and on_shutdown params

Open heysaeid opened this issue 1 year ago • 2 comments

Description: Update documentation for deprecated on_startup and on_shutdown parameters.

Details: This PR addresses the deprecation of the on_startup and on_shutdown parameters in the annotated type within FastAPI and APIRouter. The documentation for these parameters has been updated to reflect their deprecation and to recommend using the lifespan parameter instead, as per the FastAPI documentation guidelines.

Changes Made:

  • Updated the documentation within the annotated type for the deprecated on_startup and on_shutdown parameters.
  • Added information highlighting the deprecation and recommended usage of the lifespan parameter.

Branch Name: docs/deprecate-on-startup-shutdown-params

heysaeid avatar Nov 14 '23 14:11 heysaeid

Hi @alejsdev 👋 May I know what the P4 label means and when PRs that have this label will be reviewed?

heysaeid avatar Mar 30 '24 16:03 heysaeid

Hi @heysaeid, thank you for your interest in contributing to FastAPI and for your patience. We have a high volume of PRs, we're reviewing and classifying them. We'll come back to review your PR in detail, we appreciate your patience as we manage the queue. 🙇‍♀️

alejsdev avatar Sep 04 '24 12:09 alejsdev