Skip to content

Use lifespan of FastAPI

Shinya Maeda requested to merge use-lifespan into main

What does this merge request do and why?

Use lifespan of FastAPI

This commit switches to lifespan of FastAPI from deprecated on_server_startup and on_server_shutdown.

Related to https://gitlab.com/gitlab-org/modelops/applied-ml/code-suggestions/ai-assist/-/issues/409+

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

Merge request checklist

  • Tests added for new functionality. If not, please raise an issue to follow up.
  • Documentation added/updated, if needed.

Merge request reports