- Sort Score
- Result 10 results
- Languages All
Results 1 - 9 of 9 for Lifespan (0.1 sec)
-
docs/en/docs/advanced/events.md
/// info You can read more about the Starlette `lifespan` handlers in <a href="https://www.starlette.io/lifespan/" class="external-link" target="_blank">Starlette's Lifespan' docs</a>. Including how to handle lifespan state that can be used in other areas of your code. /// ## Sub Applications { #sub-applications }
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Aug 31 09:15:41 UTC 2025 - 7.9K bytes - Viewed (0) -
docs/en/docs/advanced/testing-events.md
# Testing Events: lifespan and startup - shutdown { #testing-events-lifespan-and-startup-shutdown } When you need `lifespan` to run in your tests, you can use the `TestClient` with a `with` statement: {* ../../docs_src/app_testing/tutorial004.py hl[9:15,18,27:28,30:32,41:43] *} You can read more details about the ["Running lifespan in tests in the official Starlette documentation site."](https://www.starlette.io/lifespan/#running-lifespan-in-tests)
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Aug 31 10:29:21 UTC 2025 - 615 bytes - Viewed (0) -
docs/ko/docs/advanced/events.md
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Fri May 30 13:33:53 UTC 2025 - 9.2K bytes - Viewed (0) -
docs/en/docs/advanced/async-tests.md
/// /// warning If your application relies on lifespan events, the `AsyncClient` won't trigger these events. To ensure they are triggered, use `LifespanManager` from <a href="https://github.com/florimondmanca/asgi-lifespan#usage" class="external-link" target="_blank">florimondmanca/asgi-lifespan</a>. /// ## Other Asynchronous Function Calls { #other-asynchronous-function-calls }
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Aug 31 09:15:41 UTC 2025 - 3.9K bytes - Viewed (0) -
docs/es/llm-prompt.md
* on the fly: sobre la marcha (do not translate to "al vuelo") * terminal: terminal (femenine, as in "la terminal") * terminals: terminales (plural femenine, as in "las terminales") * lifespan: lifespan (do not translate to "vida útil" or "tiempo de vida") * unload: quitar de memoria (do not translate to "descargar") * mount (noun): mount (do not translate to "montura") * mount (verb): montar
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sat Jul 26 18:57:50 UTC 2025 - 5.3K bytes - Viewed (0) -
docs/en/docs/deployment/https.md
The domains are securely verified and the certificates are generated automatically. This also allows automating the renewal of these certificates.
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Aug 31 19:34:08 UTC 2025 - 14.3K bytes - Viewed (0) -
docs/en/docs/deployment/docker.md
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Aug 31 09:15:41 UTC 2025 - 29.5K bytes - Viewed (1) -
docs/es/docs/deployment/docker.md
```Dockerfile # ⛔️ No hagas esto CMD fastapi run app/main.py --port 80 ``` Asegúrate de siempre usar la **forma exec** para garantizar que FastAPI pueda cerrarse de manera adecuada y que [los eventos de lifespan](../advanced/events.md){.internal-link target=_blank} sean disparados.
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Fri May 30 13:15:52 UTC 2025 - 31K bytes - Viewed (0) -
docs/en/docs/release-notes.md
ml_models = {} @asynccontextmanager async def lifespan(app: FastAPI): # Load the ML model ml_models["answer_to_everything"] = fake_answer_to_everything_ml_model yield # Clean up the ML models and release the resources ml_models.clear() app = FastAPI(lifespan=lifespan) @app.get("/predict") async def predict(x: float):
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Fri Sep 05 12:48:45 UTC 2025 - 544.1K bytes - Viewed (0)