Thread
#prefect-community
    a

    Adam Roderick

    2 years ago
    Can I access a flow's run ID from a state handler? I want to generate a URL to the logs in Prefect Cloud, and I need the run ID to do that
    Dylan

    Dylan

    2 years ago
    Hey Adam, I’m out of pocket at the moment but I believe the flow run ID is in prefect.context
    If that’s accessible from the state handler
    a

    Adam Roderick

    2 years ago
    Thanks!
    prefect.context is accessible. I see no flow_run_id, so I assume that is only available when running in cloud
    Yes, I believe that’s correct
    a

    Adam Roderick

    2 years ago
    Perfect. Thanks again. Looks right