def METHOD_NAME(flow_run: FlowRun):
    logger = prefect.context.get("logger")
    prefect_client = prefect.Client(api_server=PREFECT_SERVER_URL)
    logger.info(
        (
            f"Cancelling flow run {flow_run.flow_run_id} of flow {flow_run.flow_name} "
            f"which has been in state {flow_run.state} since {flow_run.state_timestamp}."
        )
    )
    prefect_client.METHOD_NAME(flow_run.flow_run_id)