def set_webhook_server(app: "FastAPI"):
    """
    Set the webhook server. This should only be called once.

    Parameters:
        app (FastAPI): The webhook server.

    """
    global _server

    if _server:
        raise ValueError("Server already set")

    _server = app

    Set the webhook server. This should only be called once.

    Parameters:
        app (FastAPI): The webhook server.

    
argilla/src/argilla/webhooks/_helpers.py