INNER CODE UNIT · Python

lifespan

jiisanda/docflow · app/main.py:14

async def lifespan(app: FastAPI):
    docflow_logger.info("Starting DocFlow...")

    try:
        docflow_logger.info("Initializing Tables and Storage buckets...")
        await check_tables()
        await create_bucket_if_not_exists()
        docflow_logger.info("Tables and Storage buckets successfully created.")
    except Exception as e:
        docflow_logger.error(f"Error during startup: {e}")
        raise
    yield


app = FastAPI(
    title=settings.title,
    version=settings.version,
    description=settings.description,

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…