def METHOD_NAME(app: FastAPI, settings: ComputationalBackendSettings) -> None:
    async def on_startup() -> None:
        app.state.dask_clients_pool = await DaskClientsPool.create(
            app=app, settings=settings
        )
        logger.info(
            "Default cluster is set to %s",
            f"{settings.default_cluster!r}",
        )
    async def on_shutdown() -> None:
        if app.state.dask_clients_pool:
            await app.state.dask_clients_pool.delete()
    app.add_event_handler("startup", on_startup)
    app.add_event_handler("shutdown", on_shutdown)